Of the three languages that I deal with semi-frequently (JS, Python, and PHP), I have by far the least trouble with PHP's package management.
It’s an excellent package manager in a mainstream language that just does its job.
It helps that the PHP community mostly just saw PSR4 and went, yeah, that’ll do.
Meanwhile over in JS land issues are still caused because different modules use different module formats and it’s all just…fragile somehow.
Ironic give the reputation of PHP that it nailed its package manager.