granam / mautic-composer-v2-plugin
Allows Composer v2 for Mautic
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/granam/mautic-composer-v2-plugin
Requires
- composer-plugin-api: ^1.0|^2.0
- ext-json: *
Requires (Dev)
- composer/composer: ^1.5|^2.0
Replaces
README
Fork with a change to support Composer v2.
This plugin will allow Mautic users that manage their instance via composer to easily install your plugins and themes. Simply host your plugin on GitHub, add it to packagist, and you're ready to go.
There are two requirements to using this plugin.
- After adding a
composer.jsonto the root of your plugin repository, runcomposer require mautic/composer-plugin. - Set the
typein yourcomposer.jsonfile to eithermautic-pluginormautic-theme, depending on what your code is. - Optionally, set the
install-directory-nameunderextrato define the directory the plugin will be installed into. This should match your plugin's namespace. This will default to a camel case version ofnameif not defined. Yourcomposer.jsonshould now look something like this:
{
"name": "dongilbert/my-twig-extension-bundle",
"type": "mautic-plugin",
"extra": {
"install-directory-name": "MyTwigExtensionBundle"
},
"require": {
"mautic/composer-plugin": "*"
}
}