Composer 2 · Autoloading and production

Install for production

Install without development packages and with an optimized autoloader.

composer install --no-dev --optimize-autoloader

Official Composer 2 documentation

More autoloading and production commands

All autoloading and production commands · Composer 2 cheatsheet

Was this page helpful?