Skip to content

Install for Development

Barry O'Donovan edited this page Apr 30, 2014 · 1 revision

You may wish to install Oss2 packages and develop them further.

For example, to install oss2/doctrine2 as a Git repository in your vendor/ directory, proceed as follows:

  1. Add it to your composer.json file:

    "repositories": [
        {
            "url": "git@github.com:oss2/doctrine2.git",
            "type": "vcs"
        }
    ],
    "require": {
        "oss2/doctrine2": "dev-master"
    }
  2. Update your vendor packages:

    composer update --prefer-source

If you already have the package and you want to switch to a Git clone of it, you can do this via:

rm -rf vendor/oss2/doctrine2
composer install --prefer-source
Clone this wiki locally