Composer¶
Requirements¶
Global usage¶
For a quick start, the project can be used together with Composer’s
built-in create-project command:
composer create-project cpsit/project-builder --no-dev <projectname>
Replace <projectname> with the actual name of your new project. This will
be the folder name where to install and set up your project.
Tip
Add the -v (or --verbose) command option to get a verbose
output of processing steps.
Project-level usage¶
The project can also be integrated into an existing project as a Composer plugin:
composer require --dev cpsit/project-builder
Once installed, an additional Composer command project:create is available:
composer project:create <target-directory> [-f|--force] [--no-cache]
The following command parameters are available:
target-directoryPath to a directory where to create the new project
-f,--forceForce project creation even if target directory is not empty
--no-cacheDisable template source cache during package listing