Skip to content

Instantly share code, notes, and snippets.

@ryantbrown
Created February 21, 2018 17:18
Show Gist options
  • Save ryantbrown/5841e20eb2e166de660719a1e06c8622 to your computer and use it in GitHub Desktop.
Save ryantbrown/5841e20eb2e166de660719a1e06c8622 to your computer and use it in GitHub Desktop.
Private composer package
// main app
"repositories" : [
{
"type": "package",
"package": {
"name": "grininc/platform-shared",
"version": "dev-master",
"source": {
"url": "git://github.com/grininc/platform-shared.git",
"type": "git",
"reference": "master"
},
"autoload": {
"psr-4" : {
"Grin\\Shared\\" : "src"
}
}
}
}
],
"require": {
"grininc/platform-shared": "dev-master"
},
"config": {
"preferred-install": "dist",
"secure-http": false,
"github-oauth": {
"github.com": "GITHUB_TOKEN"
}
}
// package
{
"name": "grininc/platform-shared",
"type": "package",
"authors": [],
"require": {
"laravel/framework": "5.5.*"
},
"autoload": {
"psr-4": {
"Grin\\Shared\\": "src/",
"Tests\\": "tests/"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment