PHPackages                             tanhongit/composer-plugin-demo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tanhongit/composer-plugin-demo

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

tanhongit/composer-plugin-demo
==============================

A demo of a composer plugin

00PHP

Since Nov 15Pushed 2y agoCompare

[ Source](https://github.com/tanhongit/composer-plugin-demo)[ Packagist](https://packagist.org/packages/tanhongit/composer-plugin-demo)[ RSS](/packages/tanhongit-composer-plugin-demo/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer plugin example
=======================

[](#composer-plugin-example)

Here is a simple example of a composer plugin.

Structure
---------

[](#structure)

```
plugin
├── src
│   └── Plugin.php
├── composer.json
├── composer.lock

```

Usage
-----

[](#usage)

### Add require into composer.json

[](#add-require-into-composerjson)

```
{
  "require": {
    "cslant/composer-plugin-example": "dev-main"
  },
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/cslant/composer-plugin-example.git"
    }
  ]
}
```

### Run composer command

[](#run-composer-command)

```
composer update
```

### Check vendor directory

[](#check-vendor-directory)

```
ls vendor/cslant/composer-plugin-example
```

Reference
---------

[](#reference)

- [Composer Plugin API](https://getcomposer.org/doc/articles/plugins.md)

Composer install demo
---------------------

[](#composer-install-demo)

```
composer require cslant/composer-plugin-example
```

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35853002?v=4)[Tan Nguyen](/maintainers/tanhongit)[@tanhongit](https://github.com/tanhongit)

---

Top Contributors

[![tanhongit](https://avatars.githubusercontent.com/u/35853002?v=4)](https://github.com/tanhongit "tanhongit (15 commits)")

### Embed Badge

![Health badge](/badges/tanhongit-composer-plugin-demo/health.svg)

```
[![Health](https://phpackages.com/badges/tanhongit-composer-plugin-demo/health.svg)](https://phpackages.com/packages/tanhongit-composer-plugin-demo)
```

###  Alternatives

[ccinn/husky-php

Similar to js-husky client git hook implementation

6827.0k1](/packages/ccinn-husky-php)[keios/moneyright

Precise, GAAP-compliant, database-friendly Money Value Object

2055.5k1](/packages/keios-moneyright)[lloricode/laravel-html-table

Html table generator for laravel

1561.9k1](/packages/lloricode-laravel-html-table)[lingxi/hashids

A Hashids bridge for Laravel

183.3k](/packages/lingxi-hashids)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
