cslant / composer-plugin-example
An example of a composer plugin
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Type:composer-plugin
Requires
- php: ^8.0
- composer-plugin-api: ^2.0
Requires (Dev)
- composer/composer: ^2.0
README
Here is a simple example of a composer plugin.
Structure
plugin
├── src
│ └── Plugin.php
├── composer.json
├── composer.lock
Usage
Add require into composer.json
{ "require": { "cslant/composer-plugin-example": "dev-main" }, "repositories": [ { "type": "git", "url": "https://github.com/cslant/composer-plugin-example.git" } ] }
Run composer command
composer update
Check vendor directory
ls vendor/cslant/composer-plugin-example
Reference
Composer install demo
composer require cslant/composer-plugin-example