Composer 2 · Autoloading and production
Allow a plugin
Composer 2.2 and later ask you to allow plugins explicitly. Allow one by name.
composer config allow-plugins.vendor/plugin true
Official Composer 2 documentation
More autoloading and production commands
- Regenerate the autoloader
- Optimize the autoloader
- Install for production
- Run a script
- Clear Composer's cache
- Install a tool globally
All autoloading and production commands · Composer 2 cheatsheet