-
-
Save grandeto/7d896773523082b77bc207f584c4a006 to your computer and use it in GitHub Desktop.
composer require git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment