Revision #13 has been created by Kartik V on Jul 10, 2015, 10:54:53 AM with the memo:
Clarified the vcs custom branch
« previous (#12)
Changes
Title
unchanged
Using your own forked version of extensions with composer
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
yii2, composer, fork, extension, repository, update, package
Content
changed
[...]
### Step 1
Let's take an example. Let's say you want to fork the package [`kartik-v/yii2-widgets`](https://github.com/kartik-v/yii2-widgets).
### Step 2
Fork the library on GitHub. It is important for you to check if the source contains a valid `composer.json` file. This is important for the rest of the steps to work. After the fork, let's say your forked package version is now at `https://github.com/yourname/yii2-widgets`. As a next step, you must create a custom branch (you will update the version constraint in `composer.json` later to point to your custom branch). Your custom branch name must be prefixed with `dev-`. For example, let us assume you create a branch named `custom` and your patched updates
will be within a branch named `dev-custom`.
### Step 3
Push your library changes to the custom branch above (You can check which one it is on Packagist, under “Source:” – [Example](https://packagist.org/packages/kartik-v/yii2-widgets)).
### Step 4[...]