cslant/composer-plugin-example

An example of a composer plugin

v1.0.2 2024-10-27 17:17 UTC

This package is auto-updated.

Last update: 2024-11-27 17:36:10 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