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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cslant/composer-plugin-example

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

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 yesterday

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 52% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

614d 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

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.4M2.8k](/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.

3014.6M26](/packages/vaimo-composer-patches)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M124](/packages/automattic-jetpack-autoloader)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1465.4M62](/packages/mnsami-composer-custom-directory-installer)[laminas/laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration

304.4M108](/packages/laminas-laminas-component-installer)

PHPackages © 2026

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