I don\'t get how the create-project
works in composer. Lets take Laravel as example.
I can install this PHP framework with the following command:
require
will add a dependency to the composer.json
file and load it into the vendor
directory as you have correctly noticed.
create-project
on the other hand will clone the dependency, i.e. use the dependency as a template for a new project. Take a look at the repository behind laravel/laravel
: https://github.com/laravel/laravel