Skip to content

Instantly share code, notes, and snippets.

@hojaonline
Last active April 6, 2018 09:32
Show Gist options
  • Select an option

  • Save hojaonline/22c2edc2e3c541ebbb88d6999648f365 to your computer and use it in GitHub Desktop.

Select an option

Save hojaonline/22c2edc2e3c541ebbb88d6999648f365 to your computer and use it in GitHub Desktop.
add a new package wich is not at packagist, it's a local or non-public repository

You can run the following from the project root to add a repository to the project's composer.json

composer config repositories.repo-name vcs https://github.com/my/repo

and then add the package with

composer require package-name:dev-branchname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment