Last Updated: February 25, 2016
·
13.15K
· bendihossan

Composer - generate namespaces without installing/updating

You can easily ask composer to regenerate vendor namespaces without having to install or update the vendors.

php composer.phar dump-autoload

Check the results by looking in vendor/composer/autoload_namespaces.php. This is especially useful if you're developing a library or bundle that another project uses with composer to install it's dependencies.

Source: https://github.com/composer/composer/issues/627

1 Response
Add your response

Another benefit of that command is to generate a static class map which dramatically improves autoloading performance. It's something any composer based application could benefit from in a production environment.

over 1 year ago ·