Hacker News new | ask | show | jobs
by BadBadJellyBean 42 days ago
Wordpress and Nextcloud are two very prominent pieces of software that come to mind that are built on PHP. I'm sure there is more out there.
1 comments

I suppose my question would be: what would be the reason to choose PHP in 2026 for a greenfield project over the plethora of other available languages?
Laravel is one of the most comprehensive and best developer experiences around. Give it a spin of you haven’t tried it.
I wanted to give Laravel a spin to have PHP+Laravel under my belt for future. `laravel new` couldn't even initialize a project fully, which might be the first time I've seen a framework-specific setup tool fail this fast
I asked a genuine question. Does Laravel deliver a superior developer experience than let's say Rails or Djano?

Like if I were to sell PHP in 2026 to a new team, how would I position it?

It does. Just look at quality of the documentation for starters.

Laravel is really excellent. PHP’s package manager, Composer, is great, and Laravel makes excellent use of it. The two main front end tools, Livewire and Inertia, are fun, with good starter kits. It has an elegant built in AI SDK, an official LLM developer integration, good payments support. There’s a new typescript binding. It has, IMO, one of the few truly well-designed ORM implementations.

There’s an incredible community around it. Lighthouse, the schema-first GraphQL package, is one of the neatest I have seen.

And PHP 8.x is a much more capable language than people expect. LLMs speak it well and are typically very up to date with its capabilities.

ETA: I think one of the things that sets it apart from other environments is the sense that it has a mature clarity of purpose, to be honest. In this AI-slop-documentation era, have a look at the documentation, the clarity of it, the ease of onboarding. Laravel as a project tends to execute well on ideas, has sensible defaults etc.; it just feels grown-up. It moves a little slower than other frameworks in terms of innovation, but sweats the details. It also has a well-managed upgrade process.

Unfortunately, I think PHP, and ultimately Ruby, Python, Perl, and Node.js, will all eventually be proven to be inappropriate for web development. It feels to me like we are heading away from a world where every application sits on top of an interpreter and a huge attack surface.

For myself, I really like Laravel; I have deployed apps in it that did good things for people and it was never once in my way. It has been fun, simple, even quite poetic to use. But I think I am done with these sorts of programming environments, and I am going to force myself back to things with a smaller footprint.

I certainly think that one aspect of PHP has to change, and that is the tendency to deploy with distro packages. That is clearly an inappropriate burden in the LLM-assisted hacking era.

Substitute "php" for "COBOL" and you may understand why that question is a pointless one.

Because we all know why COBOL is still used and why those old institutions are still important for functionality. PHP isn't on that level, but isn't far from it. many/most 20-30+ YO legacy codebases in web likely have PHP in some important part of its stack.

Even if not that doesn't matter. There is a lot of software out there that is very actively developed and based on PHP. So it's very odd that they are so underfunded but on the other hand it's probably a marketing problem. I didn't know about that since this post.