All Projects → lichunqiang → composer-ignore-plugin

lichunqiang / composer-ignore-plugin

Licence: MIT license
The composer plugin to remove useless files by yourself

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to composer-ignore-plugin

Foxy
A fast, reliable, and secure NPM/Yarn bridge for Composer
Stars: ✭ 137 (+552.38%)
Mutual labels:  composer-plugin
composer-plugin-qa
Comprehensive Plugin for composer to execute PHP Quality assurance Tools
Stars: ✭ 25 (+19.05%)
Mutual labels:  composer-plugin
composer-repl
A REPL for PHP built into Composer (using PsySH)
Stars: ✭ 81 (+285.71%)
Mutual labels:  composer-plugin
Composer Preload
Preload your sweet sweet code to opcache with a composer command, making your code faster to run.
Stars: ✭ 173 (+723.81%)
Mutual labels:  composer-plugin
logSys
PHP Secure, Advanced Login System
Stars: ✭ 80 (+280.95%)
Mutual labels:  composer-plugin
composer-backslasher
Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.
Stars: ✭ 39 (+85.71%)
Mutual labels:  composer-plugin
Composer Cleaner
Victor The Cleaner: removes unnecessary files from vendor directory
Stars: ✭ 114 (+442.86%)
Mutual labels:  composer-plugin
composer-cost
Displays cost/size of each composer package installed.
Stars: ✭ 31 (+47.62%)
Mutual labels:  composer-plugin
composer-packages
Composer Packages is a Composer plugin for getting information about installed packages in your project.
Stars: ✭ 32 (+52.38%)
Mutual labels:  composer-plugin
symfony-clean-tags-composer-plugin
No description or website provided.
Stars: ✭ 24 (+14.29%)
Mutual labels:  composer-plugin
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 composer command for testing/troubleshooting patches.
Stars: ✭ 196 (+833.33%)
Mutual labels:  composer-plugin
composer-asset-compiler
Composer plugin that installs dependencies and compiles assets based on configuration.
Stars: ✭ 19 (-9.52%)
Mutual labels:  composer-plugin
drupal-composer-init
Initialise a Drupal composer setup
Stars: ✭ 43 (+104.76%)
Mutual labels:  composer-plugin
Private Composer Installer
Composer install helper outsourcing sensitive keys from the package URL into environment variables
Stars: ✭ 168 (+700%)
Mutual labels:  composer-plugin
laminas-dependency-plugin
Replace zendframework and zfcampus packages with their Laminas Project equivalents.
Stars: ✭ 32 (+52.38%)
Mutual labels:  composer-plugin
Composer Custom Directory Installer
A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
Stars: ✭ 117 (+457.14%)
Mutual labels:  composer-plugin
package-wizard
Package Wizard is a library for creating a new packages using CLI tool.
Stars: ✭ 61 (+190.48%)
Mutual labels:  composer-plugin
composer-diff
Compares composer.lock changes and generates Markdown report so you can use it in PR description.
Stars: ✭ 51 (+142.86%)
Mutual labels:  composer-plugin
composer-patches-plugin
Plugin for composer to apply patches onto dependencies.
Stars: ✭ 75 (+257.14%)
Mutual labels:  composer-plugin
composer-localdev-plugin
Composer Plugin for local development
Stars: ✭ 31 (+47.62%)
Mutual labels:  composer-plugin

Composer Ignore Plugin version Download

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

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

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?

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 for example.

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].