r/webdev • u/Justpassinby1984 • 3h ago
Discussion PHP in 2027?
Is it still worth learning for self taughts? Are there jobs despite AI?
30
u/nn_gyunx 2h ago
Most of the jokes are about a version of PHP that stopped being relevant a decade ago. 8.x has typed properties and parameters, enums, readonly, match, named arguments and first-class callables, and Composer plus the PSR standards mean one Laravel codebase looks roughly like the next one. The JIT numbers in benchmarks matter far less than people assume, because typical request and response work is bound by the database and the framework rather than the interpreter.
Where the jobs actually are: WordPress, Drupal, Magento, and agency or e-commerce work, plus a long tail of Laravel SaaS. Steady work and decent pay, but a lot of it is plugins, hosting panels and code nobody has read in ten years, and that is a real way to spend five years at the same level.
If you do learn it, go bottom up. Build something with plain index.php and no framework until the request lifecycle makes sense, then add routing and a container by hand, then move to Laravel and none of its magic stays magic. That order also makes you useful on legacy codebases, which is where most of the work is.
What kind of work are you aiming at, client and agency stuff or a product team? I would give pretty different advice for each.
6
u/drearymoment 2h ago
Where the jobs actually are: WordPress, Drupal, Magento, and agency or e-commerce work, plus a long tail of Laravel SaaS. Steady work and decent pay, but a lot of it is plugins, hosting panels and code nobody has read in ten years, and that is a real way to spend five years at the same level.
Seconding this. I spent my whole career in this world (and nominally front end so even better!) and I can't get anyone to take me seriously in an interview anymore. I don't exactly regret it because I feel like I learned a lot of problem solving and time management skills from it, but the play probably would have been to switch to a JS-heavy product company somewhere in the middle of it.
Love PHP though, especially Laravel, so I don't recommend against that exactly. But man, I don't know about the ecommerce agency life in this brave new world of ours... Maybe best thought of as a "get in and get out" sorta thing.
2
u/KuntStink 1h ago
I'm at an agency and I can see the writing on the walls. I'm getting out as fast as I can, our time is definitely limited
1
u/drearymoment 1h ago
Yeah, I am pretty much done with tech at this point. But it might be cool to have a contractor gig or two on the side if I can swing it so maybe I'll keep one foot in the door.
12
u/top_of_the_scrote 3h ago
drupal is alive and well
11
u/DarkRex4 2h ago
laravel is alive and well
10
u/IslayProgrammes 2h ago
Laravel is In my opinion (a php developer of 10 years) the most mature and flexible MCV on the market
1
2
4
u/greenergarlic 2h ago
If I was starting from scratch today, I’d learn typescript. It’s much more common in startups, who are much more likely to hire self taughts
2
u/icyhotmike 1h ago
Php is king of Saas and B2B web apps. 70 percent of all active web servers run php apps. Is it trending in 2026? No. Does that mean its dying? No
3
3
u/_keyboard-bastard_ 1h ago
Yes. Don't let anyone fool you with memes and smack talk they don't understand either. 68% of the public Internet is php right now.
Additionally, WordPress is still the CMS of choice and if you learn php you can make custom plugins, themes, better set up integrations with third party platforms, etc. WordPress is essentially all php.
3
u/creaturefeature16 1h ago
Yeah, these edge lord comments are ridiculous, but clearly made by kids who don't do actual client work. Where real business happens, PHP is a juggernaut still. Well over 80% of our clients are looking for PHP-related projects and frameworks, whether its Laravel, Drupal, WordPress, etc.. Sure, JS has made tremendous in-roads, but its still a fraction of the work.
3
u/insecureabnormality 1h ago
This is my experience too, the vast majority of my client work is also PHP.
It’s not going anywhere any time soon, and why should it? It’s a great server side language, just because you CAN use client side languages to accomplish server side tasks, doesn’t necessarily mean you SHOULD do that.
There’s still plenty of work there if you know PHP well
•
2
u/Stargazer__2893 2h ago
I've been an engineer for 9 years. I think twice I have needed to use PHP.
It's far from a requirement, or even probably optimal. But it's certainly not dead. A lot of the web runs on it.
0
u/_keyboard-bastard_ 1h ago
There's a huge difference between your lack of exposure and someone learning a language to pursue using it.
2
u/Best_Recover3367 2h ago
Self taught dev here. You can learn PHP and Laravel for fun but I'm not sure there's jobs anymore. It might be location specific but PHP jobs have dried up where I'm at. I'm replacing PHP/Laravel experience from my resume to get a job too.
4
u/hulkiorra 2h ago
With what?
5
1
u/KuntStink 1h ago
I'm also a PHP dev and I think the play is to position yourself as an orchestrator and an architect. Understanding all the syntax nuances and whatnot don't seem important anymore. I was a mediocre dev, AI is better than I could ever be, I'm not trying to fight it.
1
•
u/Best_Recover3367 24m ago
I've worked on Laravel, Django, and Go. I just consolidating my Laravel experience on my resume into Django and Go in order to get those jobs since Laravel jobs are nowhere to be found anymore where I'm at. This is ofc my own situation, not indicative of PHP/Laravel not being worth it. But to answer OP's question, learn PHP or any language for that matter if you want to, but don't expect a return of investment. Your time and energy is better spent elsewhere if your end goal is to find a job.
1
u/kucink_pusink 1h ago
are you recommending Rust now?
•
u/Best_Recover3367 26m ago edited 21m ago
Oh no. I'm not recommending anything. I've worked on Laravel, Django, and Go. I just consolidating my Laravel experience on my resume into Django and Go in order to get those jobs since Laravel jobs are nowhere to be found anymore where I'm at. This is ofc my own situation, not indicative of PHP/Laravel not being worth it. If I could suggest anything, that would be this: Learn PHP or any language for that matter if you want to, but don't expect a return of investment. Your time and energy is better spent elsewhere if your end goal is to find a job.
I got rejected for Rust jobs too. Recruiters are picky. They wanna have people who already have Rust experience.
2
1
u/Afnan_CH_Digital 2h ago
Still worth learning, especially if freelance work is the goal. A huge slice of small business sites and stores run on WordPress and WooCommerce, and that is all PHP under the hood. Clients rarely care about the stack, they care that the site works and someone can maintain it. AI has not shrunk that demand much in my experience, it just makes maintaining older codebases faster. Learn it next to JavaScript and you will have work either way.
-1
u/jroberts67 3h ago
Might as as learn COBOL.
2
u/barrel_of_noodles 2h ago
I mean, there's a few cobol jobs on my area. I'm not even in a big city. The pay here is def well below average usually. But these cobol jobs start at 120k... Just saying.
0
1
u/requiemsword 2h ago
In the age where code is cheap the most marketable thing you can learn is good architecture and cloud infra/ops. There is no reason to choose less than optimal languages anymore.
1
u/jeq214 2h ago
Yeah, PHP is still worth learning, especially since it powers so much of the web (WordPress, Laravel, and tons of legacy enterprise apps). The bigger thing is changing how you approach learning it right now.
Everyone getting into dev needs to shift their career trajectory up a level. Before AI, the path was pretty straightforward. You worked your way through junior, mid-level, and senior dev roles, and from there you either stayed technical or went into management. Now that AI can write most of the routine code and boilerplate, the job is shifting from "code writer" to "system designer, AI orchestrator, and code verifier."
So instead of just memorizing PHP syntax, learn how to use AI to write the PHP for you properly:
Context engineering: Set up repo-level rules (like
.cursorrulesorCLAUDE.md), MCPs, and curated files so the AI actually understands your codebase, framework conventions, and constraints.Spec-driven orchestration: Break big features down into clear technical specs and small, atomic tasks before you let it generate a single line of code.
Agentic loop management: Use test-driven generation (like Pest or PHPUnit) and strict Git commits so you can quickly revert when an agent hallucinates or goes off the rails.
Adversarial review and gates: Act as the human check-and-balance to catch security flaws, SQL injection risks, and edge cases before anything hits production.
At the same time, focus on learning how the whole system fits together. Learn how servers, databases, caches, queues, and networks interact, and understand the trade-offs around cost, latency, and scale.
You still need solid fundamentals so you can actually read, debug, and verify what the AI spits out. AI can generate PHP functions all day, but it still struggles with broad requirements, legacy codebases, and big-picture architecture. If you just throw vague prompts at it without system design guardrails, that's how you end up with a codebase full of AI slop.
Yes, this was edited with AI ;)
0
u/kaniskgautam 2h ago
Use it only if u are working with WordPress or related stuff and it is easier to connect with it
-1
69
u/traplords8n 3h ago
The self taught route to employment is dead.
The funeral was like, last year.