Igor Simic
8 years ago

Composer commands



How to install package in existing or specific folder?

This command will install to current folder
composer create-project laravel/laravel .

This composer command will install in specific folder:
composer create-project laravel/laravel folder_name

To install specific version of package in specific folder:
composer create-project laravel/laravel folder_name 5.2.*    // will install only laravel version 5.2 and greater

If you do not have installed composer, here is short tutor how to install composer on Mac OS