Are you saying you have decided to just learn JS and PHP now and not laravel?
There is free training on php here on this site. But I suggest after learning some php also learn laravel, it's a good flexible framework.
What i think the OP is looking for is a question of "if i have a new project, in what languages will the majority of team will choose". the answer is split into the needs of that projects, but as i can see the majority of web projects will chose Node.js
Unfortunately yes, but you are in a site where php and laravel are the main focus, so you'll find few to none people agreeing with you
In reality, Github stats are the main source to understand if a tecnology is declining or not. Line of committed code shows php popularity decreases year by year.
https:--madnight.github.io-githut-#-pull_requests-2023-2 (since it's my first day here, I'm not allowed to post links, so just replace - with / )
@kiwatos That page shows that PHP is one of the most popular languages for the web. Most of the top languages are all application-oriented rather than web-oriented (Python, Java, C[++]).
JavaScript and TypeScript are still largely client-side scripts used in just about any web app (whether you use Node.js or not), so they will obviously be very high on the list. Even a default Laravel project has quite a high number of JavaScript files.
That leaves Go and PHP as the two most popular web-oriented languages on the list, and Go is much less web-oriented than PHP – my gut feeling would be that the majority of Go pulls are probably not web apps.
@kokoshneta I'm not saying it's not popular, I'm saying that is declining over time. As things currently stand, Laravel (hence PHP) is being replaced by ExpressJs.
End of the day whether it's dead or not, it's still thriving in all walks of life, this forum is active on a daily basis.
Just use the right tools for the job, if you want to use PHP, use it, if you don't because of someone saying it's dead then don't, it's really that simple.
Most people refuse to believe me when I tell them that Cobol is still one of the most used languages in the world. Why? Because banks, governments and airlines who developed systems with Cobol from the '60's through to the '90's still work and are too expensive to change to Java when they have other priorities. I have a friend who is an old Cobol developer and he is always working. Cobol may not be cool, but you will always have a job. Same with PHP and Java.
@Snapey That makes me bewildered, at a loss, thrown off balance, and nonplussed not to mention flabbergasted. I suppose we all have to pursue another language now.
I know python already, so perhaps that might work.
But:
There are many people rumouring for decades that php is dead, laravel is dying
Could those "many people" whoever they are be wrong?