It's written in PHP because obviously it's for the PHP ecosystem, sounds like a really good reason. Secondly, PHP is a much simpler language to learn and write than Rust, sounds like a pretty good second reason.
With those two reasons, plus the reason that composer isn't by any way slow today, nor do you deal with thousands of packages in a project like NodeJS, the very good reason of "why not just PHP" appears as well.
Leading me to ask more questions about why spending the time to write and maintain a Rust version of a PHP packager that already works OK and fine, when the existing package manager also been written in the language the users who use it know?
> because it was too slow (especially when docker is involved)
This makes it sound like you wrote this entire project just because you had Docker misconfigured, or maybe you're on Windows which struggles with many files?
In our case, the docker issues were somewhat endemic, because different people would touch parts of the local setup, without realizing what downstream consequences there would be.
Part of the preference is being able to run on the host without installing PHP, so you don't pay the virtualization boundary tax (we were on Mac, so it's small but not nothing)
Seems strange to me to want to develop PHP applications without running PHP locally, but I guess I'm a "old school" programmer by now.
But yeah, doing PHP development on macOS hardware is kind of sucky, because of the virtualization/filesystem issues. Same applies on Windows too. Not sure how developers are not all on Linux yet, the performance difference is so stark, even given the exact same (compatible) hardware. Oh well...