PHPackages                             light/composer-ignore-plugin - 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. light/composer-ignore-plugin

ActiveComposer-plugin

light/composer-ignore-plugin
============================

ignore files by yourself

2.0.1(4y ago)211.4k2[1 PRs](https://github.com/lichunqiang/composer-ignore-plugin/pulls)MITPHP

Since Nov 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lichunqiang/composer-ignore-plugin)[ Packagist](https://packagist.org/packages/light/composer-ignore-plugin)[ RSS](/packages/light-composer-ignore-plugin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

Composer Ignore Plugin [![version](https://camo.githubusercontent.com/29154ffb0c9b07aea1c466c6eb829913278f0e65ff782832f350f368053b9fc4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696768742f636f6d706f7365722d69676e6f72652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/composer-ignore-plugin) [![Download](https://camo.githubusercontent.com/132a35f2b5280485f922310fa0fa716a8887c83a8e38a397fde80926b024c59a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696768742f636f6d706f7365722d69676e6f72652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/composer-ignore-plugin)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#composer-ignore-plugin--)

This plugin help us to remove the unused file or directories in vendor.

Installation
------------

[](#installation)

Both global or local install can work well.

1.Install globally, so every project can use the plugin.

```
$ composer global require "light/composer-ignore-plugin:~2.0"

```

2.Install locally

```
$ composer require "light/composer-ignore-plugin:~2.0" --dev

```

Usage
-----

[](#usage)

Define the ignore file or directory in composer.json, for example:

Before:

```
fzaninotto/faker/
├── CHANGELOG.md
├── composer.json
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── phpunit.xml.dist
├── readme.md
├── src
└── test

```

Configuration in `composer.json`:

```
{
	"extra": {
		"light-ignore-plugin": {
    	  "fzaninotto/faker": [
    	  	"test",
    	  	"*.md",
    	  	"LICENSE",
    	  	"Makefile",
    	  	"phpunit.xml.dist"
    	  ]
    	}
	}
}
```

After executed `composer install`, `composer update`, `composer dump-autoload`, The files will be removed.

> When execute the `composer install` or `composer update` will finally trigger the autoload dump event

After:

```
fzaninotto/faker/
├── composer.json
└── src

```

Why this?
---------

[](#why-this)

Thanks to open source, there are many useful packages helped us.

Generally, some files or folder in the installed package is useless, and when deploy to production system, reduce the files can make deploy clean.

Of cause, a lot of package had done this by add `.gitattributes` file, But also not all, [`fzaninotto/faker`](https://github.com/fzaninotto/Faker/pull/1085) for example.

LICENSE
-------

[](#license)

[MIT](LICENSE)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~412 days

Total

5

Last Release

1821d ago

Major Versions

1.0.2 → 2.0.02021-05-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

composer-ignore-plugincomposer-pluginplugincomposerdeleteremoveignore.gitattributesdelete fileremove fileignore file

### Embed Badge

![Health badge](/badges/light-composer-ignore-plugin/health.svg)

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

###  Alternatives

[liborm85/composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.

35342.7k1](/packages/liborm85-composer-vendor-cleaner)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

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

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[sllh/composer-lint

Extends the composer validate command with extra rules

14214.6k7](/packages/sllh-composer-lint)

PHPackages © 2026

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