Adding multiple Composer packages

You can require many packages from the command line, for example:

composer require barryvdh/laravel-debugbar barryvdh/laravel-snappy fideloper/proxy

And all the packages will be required according to your composer specifications.


As a matter of fact, you can list all the packages separated by space, like so:

composer require aws/aws-sdk-php vimeo/vimeo-api phpoffice/phpexcel 

Quote:

If you do not want to choose requirements interactively, you can pass them to the command

From Composer documentation

Also consider --update-with-all-dependencies to update the dependencies of all newly installed packages.

Tags:

Composer Php