tanhongit / composer-plugin-demo
A demo of a composer plugin
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Type:composer-plugin
Requires
- php: ^8.0
- composer-plugin-api: ^2.0
Requires (Dev)
- composer/composer: ^2.0
This package is auto-updated.
Last update: 2024-11-15 20:16:30 UTC
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