misterjesus (npub1mw4…p6t6) Alex Gleason (npub108p…yev6) anime graf mays 🛰️🪐 (npub108z…dkr5) I dont think thats an A-B comparason.
You can 100% build Javascript that doesnt require npm. You probably don't want to do that unless you are doing something VERY basic
The same is true with PHP. At some level of complexity, you are going to need to use externally written code. PHP SUCKS for this. The best solution i found was using composer, which is infinitely more shit than npm
I would go as far as to say, PHP doesn't really have a good niche atm other than being quick and dirty