Really node.js requires more and more resources than php, so please go to check the limitations that the providers impose to use it on a shared. If you have a vps, dedi or you are in cloud ok. But many little firms are hosted on a shared plan. And you have to consider the tournover behind little companies that use PHP.
PHP isn't a multipourpose language and you cannot compare it with c#.
PHP has many limitations, has not consistance as we know, but we would like speak about JS?
Of course JS is mandatory in the modern web and JS isn't perfect too. It has not a solid syntax for example (if you use "else if" in JS you'll probably introduce in the code a problem, because JS has not "else if" but it runs without debug error, you can use ; or not, many newbies don't use var and produce bad code).
PHP for many years will be on the run not only for the legacy of the past but because many web developers choose frameworks like Laravel, Simphony. As you know Laravel has choosed vue.js that permits integration with others JS framework, so as you said "no web developer can ignore JS".
if you consider the websites market, PHP will be for many years the king of the server side IMHO
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 :
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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.