Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save may-cat/75cd2b461584b50f1635 to your computer and use it in GitHub Desktop.
Save may-cat/75cd2b461584b50f1635 to your computer and use it in GitHub Desktop.
Примеры composer.json под Битрикс. Показывают, как подключать модули с помощью композера.
{
"name": "yourcompany/myproject",
"description": "Какой-то проект нашей компании",
"keywords": ["bitrix", "проектище"],
"homepage": "http://bitrix.expert/",
"type": "project",
"license": "Commerce",
"support": {
"source": "http://github.com/bitrix-expert/"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"bitrix-expert/bex.d7dull": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/bitrix-expert/bex.d7dull"
}
]
}
{
"name": "yourcompany/myproject",
"description": "Какой-то проект нашей компании",
"keywords": ["bitrix", "проектище"],
"homepage": "http://bitrix.expert/",
"type": "project",
"license": "Commerce",
"support": {
"source": "http://github.com/bitrix-expert/"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"user12345/repository": "*"
}
}
{
"name": "yourcompany/myproject",
"description": "Какой-то проект нашей компании",
"keywords": ["bitrix", "проектище"],
"homepage": "http://bitrix.expert/",
"type": "project",
"license": "Commerce",
"support": {
"source": "http://github.com/bitrix-expert/"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"mycompany/somemodule": "*"
},
"repositories": [
{
"type": "vcs",
"url": "git@gitserver.mycompany.ru:mycompany/somemodule"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment