Here is a simple example of a composer plugin.
plugin
├── src
│ └── Plugin.php
├── composer.json
├── composer.lock
{
"require": {
"cslant/composer-plugin-example": "dev-main"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/cslant/composer-plugin-example.git"
}
]
}
composer update
ls vendor/cslant/composer-plugin-example
composer require cslant/composer-plugin-example