git get repo with composer 1

git get repo with composer

"repositories": [
    {
        "type":"package",
        "package": {
          "name": "l3pp4rd/doctrine-extensions",
          "version":"master",
          "source": {
              "url": "https://github.com/l3pp4rd/DoctrineExtensions.git",
              "type": "git",
              "reference":"master"
            }
        }
    }
],
"require": {
    "l3pp4rd/doctrine-extensions": "master"
}

Here is what the above code is Doing:
1. It’s telling composer that we want to use a package repository.
2. It’s telling composer that the package name is l3pp4rd/doctrine-extensions.
3. It’s telling composer that the package version is master.
4. It’s telling composer that the source of the package is a git repository.
5. It’s telling composer that the git repository is located at https://github.com/l3pp4rd/DoctrineExtensions.git.
6. It’s telling composer that the git repository should be checked out at the master branch.
7. It’s telling composer that we want to require the l3pp4rd/doctrine-extensions package.
8. It’s telling composer that we want to require the master version of the l3pp4rd/doctrine-extensions package.

Now, run composer update.

Similar Posts