Composer package
To share a plugin with others, turn it into a Composer package.
Create a composer.json file in the plugin directory and set its type to herbie-plugin.
{
"name": "myvendor/myplugin",
"type": "herbie-plugin",
"require-dev": {
"getherbie/herbie": "^3.0"
}
}
See the Composer documentation for details on publishing packages to Packagist.
After publishing, install the plugin in your project with Composer:
composer require myvendor/myplugin
Then enable the plugin in the configuration. Use the name from its #[Plugin] attribute in enabledPlugins; it can differ from the Composer package name.