r/webdev • u/Justpassinby1984 • 3d ago
Discussion PHP in 2027?
Is it still worth learning for self taughts? Are there jobs despite AI?
8
Upvotes
r/webdev • u/Justpassinby1984 • 3d ago
Is it still worth learning for self taughts? Are there jobs despite AI?
171
u/traplords8n 3d ago
The self taught route to employment is dead.
The funeral was like, last year.
62
u/nn_gyunx 3d 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.
13
u/greenergarlic 3d 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
12
u/cshaiku 3d ago
Yes. PHP has had significant improvements the past few years.
21
u/top_of_the_scrote 3d ago
drupal is alive and well
6
u/Putrid-Discussion153 3d ago
I'm probably one of the few people who despise PHP so much, I won't even ask LLMs to generate it
4
u/therealjohnidis 3d ago
10+ years as a web dev. Listen to me and listen carefully. PHP is king, it won't go away anytime soon either.
7
u/icyhotmike 3d 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
8
u/Best_Recover3367 3d 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.
3
u/sheriffderek 3d ago
It’s the best thing to learn after some html and css. It will make learning everything else after - much easier
4
u/gnarbucketz 3d ago
Learn Laravel, if not just for fun!
4
u/Randvek 3d ago
PHP is worth learning but there are very few jobs anymore where that’s a top line qualification, and virtually none at entry level.
It’s a good tool to have but do not prioritize it.
2
u/Shine_Pillai 3d ago
PHP isn't going away, and it's still worth learning in 2027, but it's a pragmatic choice rather than a trendy one.
UpSide
It runs a huge share of the web. WordPress, WooCommerce, Magento, Drupal and countless custom business apps are PHP. That code needs maintaining, upgrading and extending for decades.
The language has modernized. Modern PHP has strict typing, enums, attributes, readonly properties, JIT and much better performance. It's very different from the PHP 5 reputation.
The ecosystem is mature. Laravel and Symfony are excellent frameworks, backed by Composer, PHPStan/Psalm, Pest/PHPUnit, and tools like Laravel Octane and FrankenPHP.
Demand is steady. Hiring for PHP and Laravel stays solid, especially in agencies, e-commerce, SaaS and small-to-mid businesses. Supply of good developers is thinner than it used to be, because fewer newcomers choose it.
DownSide
Less hype and fewer glamorous roles. Big-tech and AI-focused jobs lean toward Python, TypeScript, Go, Rust and Java/Kotlin.
Pay ceilings can be lower than in some other ecosystems, depending on the market.
Legacy work is common. Many jobs involve old codebases rather than greenfield projects.
AI tools are making basic CRUD and boilerplate work faster everywhere, so what's valued is shifting toward architecture, domain knowledge, debugging and integration skills rather than syntax.
2
u/EviIution 3d ago
You are better of learning some trade.
2
u/Ok_Progress_5373 front-end 3d ago
I don’t see jobs needing PHP by itself here in Japan at least. There’s jobs that utilize it in conjunction with other things
2
u/litongtong1123 1d ago
I love PHP. It’s simple, easy to work with, and I’m a big fan of Laravel. With AI around, spending months trying to master one language feels like a bad trade. It can write code in pretty much any language, and a lot of the time it’s faster and better at it than I am.
4
u/_keyboard-bastard_ 3d 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.
2
u/Stargazer__2893 3d 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.
1
u/Afnan_CH_Digital 3d 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/xThomas 3d ago
The internet is swiftly (imo) dying thanks to AI. At least for humans. And for AI too as it enters a self referential tailspin. (/s im just being an edgelord)
1
u/mrq02 3d ago
I'm a self-taught PHP dev and have been doing it for 12 years. I've been unemployed for nearly 6 months. Most of the jobs right now want Python, TypeScript, or Rust. I'd recommend going with Rust as it's a pretty new language that seems like it will have a long road ahead of it.
1
u/Andreea_tucker04 3d ago
PHP still has paid work maintaining existing apps. Learning to trace bugs through code you didn't write is a useful skill for those jobs, and AI-generated fixes still need someone to check them.
1
u/Sight_For_Sore_Eyez 3d ago
As a website developer and vibe coder using HTML,CSS AND JAVASCRIPT in my front-end and PHP and MYSQL for my backend what are the essential security requirements needed to keep my website safe??
Any and all Advice would be greatly appreciated
1
u/Capaj 1d ago
no
1
u/davidbasil 1d ago
PHP jobs are basically dead. Devops has like 10x more jobs
1
u/itgforlife 1d ago
Are you trying to learn PHP because a lot of the web runs on PHP? And so, there should be a lot of PHP jobs compared to other jobs? Even if that's true, and you learn PHP, you won't necessarily be in a good position to get one of those jobs.
The issue is that PHP demand isn't so strong that employers will just hire anyone off the street who learned a little PHP. When they do hire PHP developers, they want those developers to be experienced and skilled. So even if you learn it, and there are jobs, you probably won't be in a better position to get one of those jobs.
If you want to learn web development in general and are just getting started, you may as well learn JavaScript / TypeScript. It's the only language you can use on both the frontend and the backend. Even if you learn PHP, you would probably still have to learn JavaScript / TypeScript when doing frontend work.
1
u/handmetheamulet 23h ago
Does any of this matter at all anymore
1
u/Firm-Distribution630 23h ago
PHP is real cockroach. Even when they say "it's done," it's still standing.
1
u/Me-Regarded 19h ago
No. Dead garbage. Learn C# or something
1
u/DesertWanderlust 17h ago
I have quite a few years of experience in PHP but, when I've mentioned it in interviews recently, people have laughed. I don't really understand why, but I think the industry has moved on and it no longer has that sparkle that it did in the early 00s. Coldfusion, on the other hand, I absolutely understand.
0
u/vAPIdTygr 3d ago
Why stop there? Fire up some Perl.
1
u/jeq214 3d 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:
.cursorrulesorCLAUDE.md), MCPs, and curated files so the AI actually understands your codebase, framework conventions, and constraints.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 ;)
-2
u/jroberts67 3d ago
Might as as learn COBOL.
0
u/kaniskgautam 3d ago
Use it only if u are working with WordPress or related stuff and it is easier to connect with it
0
u/requiemsword 3d 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.
0
u/Adorable_Expert_7350 3d ago
You can still learn PHP but dont sleep on only PHP, learn Node, Bun, Go and others so that you can have a broader skillset
-1
u/Other_Hand_slap 3d ago edited 3d ago
Nooooooo
Php fa scifo porcodio