我正在编写Drupal 8模块,对作曲家来说是新手。我想知道如何将软件包指定为模块,以便可以将其安装在正确的存储库中。
现在我的模块的composer.json看起来像这样:
{
"name": "company/module_name",
"description": "Module Description",
"type": "drupal-module",
"keywords": ["the", "keywords"],
"time": "2019-04-18",
"authors": [
{
"name": "Me",
"email": "me@example.com",
"role": "Developer"
}
],
"repositories": [
{
"packagist.org": false
},
{
"type": "composer",
"url": "https://git.company.com/project.git"
}
],
"autoload": {
"psr-4": {
"Project\\": "src"
}
},
"require": {
"php": ">=7.0.0",
"mpdf/mpdf": "dev-master"
},
"minimum-stability": "stable"
}
我怀疑我缺少composer/installers
软件包,但是任何建议都会受到欢迎。