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

dev-dev 2023-11-15 18:20 UTC

This package is auto-updated.

Last update: 2024-12-15 20:31:26 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