Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
"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": "", // url to repo
"type": "git", // vcs or git
"reference": "origin/master"
"require": {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.