Perhaps because dependencies are more curated in PHP due to clusters of dominant frameworks, rather than a proliferation of smaller libraries.
Perhaps because dependencies are more curated in PHP due to clusters of dominant frameworks, rather than a proliferation of smaller libraries.
Now PHP isn't hip anymore, node js is super popular hip thing, and every tom dick and harry from art school in US or 3rd tier engineering college in India will slap together three todo list applications on Resume and wants to call himself full stack developer. Internet is fast, hardware is fast, no one cares about pile of dependencies sitting beneath them.
Add to that resume driven development where every JS wants to write libraries and become github-famous. 30-line libraries will be considered a joke and it will be shameful to brag about such things in any other ecosystem.
Until composer, there wasn't much of a culture around creating packages full stop, apart from PEAR, which beginners didn't create packages for.
Also early this year there were news that git.php.net was compromised and a backdoor was introduced into PHP, but lucky enough the backdoor was catch before a production release.[2][3]
1: https://en.wikipedia.org/wiki/PHP#Security
2: https://arstechnica.com/gadgets/2021/03/hackers-backdoor-php...
The git.php.net server was also not compromised, as far as I know, from a PHP vulnerability that was active at the time.