I agree that PHP is still powerful and great for back-end development, but I don't think PHP is more feature-rich than JavaScript.
Second, you don't have to install a 100 MB of dependencies for a simple project you can only have your simple JavaScript files. The dependencies of JavaScript are heavy sometimes that's correct, but PHP dependencies can be heavy too. So literally, PHP is no better than JavaScript in terms of a simple project.
Well, for the third thing you've mentioned, it is absolutely right. Although it is possible to use async and await, you'll need the callbacks again somewhere since it's JavaScript's nature.
I'm a developer with over 10 years of commercial experience. I've worked on all areas of the stack (Web and OS) but do not claim to be a specialist in any one single area.
I agree that PHP is still powerful and great for back-end development, but I don't think PHP is more feature-rich than JavaScript.
Second, you don't have to install a 100 MB of dependencies for a simple project you can only have your simple JavaScript files. The dependencies of JavaScript are heavy sometimes that's correct, but PHP dependencies can be heavy too. So literally, PHP is no better than JavaScript in terms of a simple project.
Well, for the third thing you've mentioned, it is absolutely right. Although it is possible to use
async
andawait
, you'll need the callbacks again somewhere since it's JavaScript's nature.async / await for the win!