Skip to content

Instantly share code, notes, and snippets.

@mfurlend
Last active April 18, 2024 21:41
Show Gist options
  • Save mfurlend/f5340de02fba166f9a84 to your computer and use it in GitHub Desktop.
Save mfurlend/f5340de02fba166f9a84 to your computer and use it in GitHub Desktop.
composer require git repository
{
"name": "my_vendor_name/my_package",
"description": "My Package Description",
"license": "GPL-3.0",
"autoload": {
"classmap": [ // search these directories for classes
"lib/"
]
},
"repositories": {
"php-console-color": { // pseudonym of git repo
"type": "package",
"package": {
"name": "coryjthompson/php-console-color", // name of git repo
"version": "1.0",
"source": {
"url": "https://github.com/coryjthompson/php-console-color.git", // url to repo
"type": "git", // vcs or git
"reference": "origin/master"
}
}
}
},
"require": {
"coryjthompson/php-console-color":"1.0"
}
}
@kea137
Copy link

kea137 commented May 3, 2021

Thanks

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