diff --git a/doc/03-cli.md b/doc/03-cli.md index 3f1d6ae8b..0f8d7ba7c 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -315,6 +315,9 @@ If the directory does not currently exist, it will be created during installatio php composer.phar create-project doctrine/orm path 2.2.0 +It is also possible to run the command without params in a directory with an +existing `composer.json` file to bootstrap a project. + By default the command checks for the packages on packagist.org. ### Options diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index 0c5d85343..7e6f9f41b 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -34,7 +34,10 @@ Composer fires the following named events during its execution process: during `install`/`update`, or via the `dump-autoload` command. - **post-autoload-dump**: occurs after the autoloader is dumped, either during `install`/`update`, or via the `dump-autoload` command. - +- **post-root-package-install**: occurs after the root package has been + installed, during the `create-project` command. +- **post-create-project-cmd**: occurs after the `create-project` command is + executed. ## Defining scripts