Живой пример с заменёнными именами.
Там, куда подключаете:
{
"name": "somevendor/somenamespace/sometitle",
"license": "Some license",
"type": "library",
"description": "Some description",
"autoload": {
"psr-0": { "SomeVendor\\SomeBundle": "src/" }
},
"require": {
"vendor/library": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.4-dev"
}
},
"repositories": [
{
"type": "git",
"url": "git@bitbucket.org:some-vendor/somelibrary.git"
}
]
}
Там, где то, что подключаете:
{
"name": "somevendor/somelibrary",
"license": "MIT",
"type": "library",
"description": "Some description",
"autoload": {
"psr-0": { "": "src/" },
"files": ["src/Vendor/path/file.php"]
},
"require": {
"somevendor/somedependency" : "~2.4"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}