granam / mautic-composer-v2-plugin
Allows Composer v2 for Mautic
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:composer-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.json
to the root of your plugin repository, runcomposer require mautic/composer-plugin
. - Set the
type
in yourcomposer.json
file to eithermautic-plugin
ormautic-theme
, depending on what your code is. - Optionally, set the
install-directory-name
underextra
to define the directory the plugin will be installed into. This should match your plugin's namespace. This will default to a camel case version ofname
if not defined. Yourcomposer.json
should now look something like this:
{ "name": "dongilbert/my-twig-extension-bundle", "type": "mautic-plugin", "extra": { "install-directory-name": "MyTwigExtensionBundle" }, "require": { "mautic/composer-plugin": "*" } }