Composer for creating a project

We can also use Composer to create a new project from an existing package. This is equivalent to performing two steps:

That means it will clone a project and install its dependencies. It can be done with the following command:

composer create-project <package name> <path on file system> <version info>

It is very useful if we want to start a project from a code base. Note, the path on the filesystem and version number is not required, but optional.