Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

RifkanRazak's avatar

Is PHP & PHP based frameworks still worth learning in 2022 ?

I am noticing huge change in our local Software market, where most of the apps are moving into JS based frameworks. I am bit confused whether PHP got a future?

0 likes
4 replies
kokoshneta's avatar

Most JS frameworks (like React, Vue, Inertia, etc.) are primarily frontend frameworks. They receive a fixed set of content from the server and are then executed in the user’s browser to provide the layout/UI the user sees and interacts with. They do not interact directly with resources on the server, including databases.

PHP frameworks (like Laravel, Symfony, even Wordpress) are always backend frameworks. They are executed on the server, where they receive an instruction from the user’s browser (in the form of an HTTP request) and, based on that, they use resources (code, files, databases) on the server to generate a response to send to the browser (in the form of an HTTP response).

There are some JavaScript frameworks that attempt to span that divide by executing JavaScript on the server as well, which can reduce code duplication (having to have code that does similar things to similar data in both frontend and backend). However you look at it, though, if you have a server with a database, you’re still going to need a backend framework of some sort to be executed on the server, and most backend frameworks are written in PHP, .NET, Python, Ruby, etc.

So yes, PHP and the other traditional backend languages have a future still. If the timeline on this page is reliable, the fastest-growing, most popular backend frameworks over the past five years have all been PHP and Python-based. The only JavaScript-based framework in the top, Express.js, has been in the top 5 pretty consistently for the past ten years and is hardly a ‘new thing’.

Will there be a time when JS backend frameworks become the juggernaut player? Perhaps. But that time isn’t now, and for a new developer, it absolutely does not make sense to avoid learning some of the current top frameworks in favour of upcoming ones that may or may not someday overtake them.

2 likes
AlexSteele's avatar

It is helpful to think of it like this. Javascript is on the front end - and handles data that is either in a .json file - or is served data that winds up in .json format from some source on the back end. the back end source is most likely going to be a mySQL database that is serving up data from requests in the form of SQL filters from PHP or another language (like C++, JAVA, PERL) but because php is so prolific, most likely this will be PHP. So yes! To answer your question, the relevance of PHP is strong, and will be for a long, long time. Its totally worth your time to study and learn it, try to look at modern PHP that is object oriented, older PHP will be less pleasant. You are in the right place to see modern, efficient PHP.

bicicura's avatar

My opinion is... if you want to freelance and provide succesful solutions use a solid framework like Laravel. Also, if you want to develop front-end skills, use it with Inertia.js along with React, Vue or Svelte to create the modern SPA's that we see all over the place. Laravel grants many tools that a solo-freelancer can leverage and produce a good project quickly.

On the other hand, if you want to work in the big companies as a full-stack well... I think that they are more based in Node.js in the back-end and React mainly in the front (or Vue). I don't know exactly because that is not my area of expertise.

There is a huge market in both worlds.

This is an opinion as a freelancer.

Please or to participate in this conversation.