mautic / composer-plugin
1.0.1
2019-08-01 19:20 UTC
Requires
- composer-plugin-api: ^1.0
Requires (Dev)
- composer/composer: ^1.5
This package is auto-updated.
Last update: 2024-08-29 04:20:08 UTC
README
此插件将允许通过composer管理实例的Mautic用户轻松安装您的插件和主题。只需在GitHub上托管您的插件,将其添加到packagist,即可开始使用。
使用此插件有两个要求。
- 在您的插件仓库根目录下添加一个
composer.json
文件后,运行composer require mautic/composer-plugin
。 - 在您的
composer.json
文件中将type
设置为mautic-plugin
或mautic-theme
,具体取决于您的代码。 - 可选地,在
extra
下设置install-directory-name
来定义插件将被安装到的目录。这应该与您的插件命名空间相匹配。如果没有定义,将默认为name
的驼峰版本。您的composer.json
现在可能看起来像这样
{ "name": "dongilbert/my-twig-extension-bundle", "type": "mautic-plugin", "extra": { "install-directory-name": "MyTwigExtensionBundle" }, "require": { "mautic/composer-plugin": "*" } }