Composer 2 · Autoloading and production

Optimize the autoloader

Generate a class map for faster autoloading in production.

composer dump-autoload --optimize

Official Composer 2 documentation

More autoloading and production commands

All autoloading and production commands · Composer 2 cheatsheet

Was this page helpful?