For multiple entities, it’s cleaner and more beginner-friendly than using the #[MapEntity] attribute (which is still an option).
And imo it’s a good move to deprecate “not passing the mapping” even for single entities. With the mapping the behaviour is more intuitive and “feels” less magic.
PHP is great when you use it right. The problem is, most people don’t use it right. That old way of rendering html through PHP, or worse, injecting PHP into html, is antiquated.
IMO, PHP is a great language to use for making your backend API. Use whatever flavor of the week on your front end.
There’s always a use for server rendered html. Maybe JavaScript is an issue. But it’s usually not. The list is pretty short though.
I can’t think of many situations where I would say yes if I asked myself “if you could re-do the system today, would you still choose server-rendered html?”
I’m sure other people have use cases where it would make sense. I build admin utilities and ERP stuff.
PHP leaves a bad taste in my mouth and I’d be happier if we were rid of it (or it continued changing for the next 10 years), but even I can see this article is worthless.
That article makes little sense. There is not a non-php version of WordPress at this time. I know Gutenberg uses Node and NPM, but the heavy lifting is still PHP. There has always been client side scripting and server side scripting with WP. I’ll buy that devs are lobbying clients to use something else, but to say this is because WordPress is driving the change can’t be right.
It is far more likely that this is from the rise of “sexier” server-side coding languages like Rust. Now I don’t know much about Rust (although I will look into it more) but I a bit of Googling on Rust vs PHP a while back and PHP is still a solid choice for a lot of things and there seem to be a lot more people out there who can code in it, making it a.good choice for FOSS projects.
I hate JavaScript, along with the whole of web 2.0 and moving shit around as it loads, making the user wait to input rather than taking the input and processing as quickly as possible, and in general the whole theme of software no longer being designed for the user to use but for the publisher to extract value from the user.
Great that it worked out, did you use apt remove or apt purge?
You might want to put your code in triple back ticks so it renders as code block :) Currently isn’t visible on some clients (boost for Lemmy in my case)
I’ve become the primary maintainer of a jumbled mess of a PHP/Laravel project we use as our"mission control" at work and I’ve been dying due to lack of dev tools. Might have to take a look at this (pester my manager for a license) assuming it has Laravel support.
php
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.