DEV Community

Discussion on: Is PHP relevant?

 
essiccf37 profile image
essic • Edited

I agree with on your point on Node and shared hosting plan, I admit that I am not involved with companies which uses shared plan for a long time now. Even on personal or contract work, I do not even consider shared plan as an option anymore. My mistake, thanks for the correction.

« PHP isn't a multipurpose language and you cannot compare it with c#. » That is interesting to me. There is nothing that you can build in PHP that can’t be done in C#. The reverse is false, since PHP isn’t multipurpose as you stated. However since I can build website in both, why can’t I compare both on building websites ??

JS is not a much better language than PHP, however its ecosystem makes it a modern platform for server side development. If we are talking about a website you can do it on Node but PHP has clearly the upper hand, no question about it.

I feel that I am not clear about my « problems » with the PHP platform, I try to sum it up here :

  • If we talk about server side (web services and middleware), PHP is out of the game as a modern scalable platform today. Even for small services, Node, Flask and many other blow PHP away, period.
  • If we talk about building small to mid size websites, PHP is relevant but I pray that you never have to maintain, over time, the mess that it will get into, as you grow the codebase : PHP do not scale
  • There are no languages where growing a codebase overtime is not a challenge, that’s one of the reason software is hard but PHP does not help you. Same for JS but the tooling is modern and everything transpile to JS. « Writing it properly » or use « {insert any framework / tool / technique here }» can’t change that.

So to me :
« if you consider the websites market, PHP will be for many years the king of the server side IMHO » is more like : PHP ain’t going anywhere any time soon, it is the cheapest solution to bootstrap, it’s hosted where no one else need to go and it’s perfectly fine for people to work with it (Slack for an example) but it’s not a modern solution for any kind of development for a business (small or large) also IMHO.

Also, PHP 6 was never out, there are technical issues with PHP as a platform and a language.

Thread Thread
 
hasnatbabur profile image
Hasnat Babur

Laravel or Symfony are the game changer here.

Thread Thread
 
essiccf37 profile image
essic

My reply is 3 years old.
While some things must have changed, I stay of the exact same opinion :

  • PHP does not scale
  • It does not fit requirements of a modern backend platform
  • PHP only advantage is its reduced cost on mutualised hosting. These are not things that Lavarel or Symfony can fix, imho.