Skip to content

Instantly share code, notes, and snippets.

@gcatlin
Last active December 11, 2015 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcatlin/4558228 to your computer and use it in GitHub Desktop.
Save gcatlin/4558228 to your computer and use it in GitHub Desktop.
Add dependency on a github project that doesn't support Composer.
{
"name": "my-github-username/my-project-name",
"description": "Project description goes here",
"repositories": {
"other-github-username/other-github-project-name": {
"type": "package",
"package": {
"name": "other-github-username/other-github-project-name",
"version": "dev-master",
"source": {
"url": "git://github.com/other-github-username/other-github-project-name.git",
"type": "git",
"reference": "master"
},
"autoload": {
"classmap": ["lib/"]
}
}
}
},
"require": {
"php": ">=5.3.4",
"other-github-username/other-github-project-name": "dev-master"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment