mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Merge pull request #1496 from schmunk42/docs-getting-started
changed install to create-project, added hint
This commit is contained in:
@ -7,7 +7,7 @@ Composer package. Here's how to do it:
|
|||||||
1. `git clone git@github.com:yiisoft/yii2-app-basic.git`.
|
1. `git clone git@github.com:yiisoft/yii2-app-basic.git`.
|
||||||
2. Remove `.git` directory from cloned directory.
|
2. Remove `.git` directory from cloned directory.
|
||||||
3. Change `composer.json`. Instead of all stable requirements add just one `"yiisoft/yii2-dev": "*"`.
|
3. Change `composer.json`. Instead of all stable requirements add just one `"yiisoft/yii2-dev": "*"`.
|
||||||
4. Execute `composer install`.
|
4. Execute `composer create-project`.
|
||||||
5. Now you have working playground that uses latest code.
|
5. Now you have working playground that uses latest code.
|
||||||
|
|
||||||
Note that requirements of extensions that come with `yii2-dev` are not loaded automatically.
|
Note that requirements of extensions that come with `yii2-dev` are not loaded automatically.
|
||||||
@ -27,3 +27,5 @@ If you're not core developer or want to use your own fork for pull requests:
|
|||||||
[remote "origin"]
|
[remote "origin"]
|
||||||
url = git://github.com/username/yii2.git
|
url = git://github.com/username/yii2.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Hint: The workflow of forking a package and pushing changes back into your fork and then sending a pull-request to the maintainer is the same for all extensions you require via composer.
|
||||||
|
Reference in New Issue
Block a user