PHPackages                             cslant/composer-plugin-example - 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. cslant/composer-plugin-example

ActiveComposer-plugin

cslant/composer-plugin-example
==============================

An example of a composer plugin

v1.0.2(1y ago)2161MITPHPPHP ^8.0

Since Nov 15Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)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

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~173 days

Total

3

Last Release

568d ago

### 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 (16 commits)")

---

Tags

composercomposer-installercomposer-packagecomposer-packagescomposer-plugincomposer-scriptscslantpackagistphp-pluginphp-pluginspluginplugincomposercomposer-plugincslantcomposer-plugin-examplecslant-plugin

### Embed Badge

![Health badge](/badges/cslant-composer-plugin-example/health.svg)

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

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[pyrech/composer-notifier

Display desktop notifications when composer finishes to install / update

411.7k](/packages/pyrech-composer-notifier)

PHPackages © 2026

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