Composer 2 · Autoloading and production
Regenerate the autoloader
Rebuild the autoload files after adding classes or changing the autoload section.
composer dump-autoload
Official Composer 2 documentation
More autoloading and production commands
- Optimize the autoloader
- Install for production
- Run a script
- Allow a plugin
- Clear Composer's cache
- Install a tool globally
All autoloading and production commands · Composer 2 cheatsheet