Cloned a GitHub repository to make some changes? Want to use that as a package without having to upload it to GitHub, here’s how…
Add the following to composer:
"repositories": [
{
"type": "vcs",
"url": "/home/packages/path-to-local-repository"
}
],
"require": {
"Package/Name": "dev-develop
}
This will pull in the develop branch when you do a composer update.
Photo by Steve Snodgrass
Leave a Reply