Composer 2 autoloading errors occurs due to wrench package PSR-0 incompliance: see: https://github.com/varspool/Wrench/issues/133 Package seems to be abandoned, solution can be to use a fork. https://github.com/chrome-php/wrench is mentioned there.