All Projects → dg → Composer Cleaner

dg / Composer Cleaner

Victor The Cleaner: removes unnecessary files from vendor directory

Projects that are alternatives of or similar to Composer Cleaner

Skrub
A package to remove junk from Composer installations and trim build sizes.
Stars: ✭ 91 (-20.18%)
Mutual labels:  cleaner, composer, composer-plugin
Acf Pro Installer
A composer install helper for Advanced Custom Fields PRO
Stars: ✭ 265 (+132.46%)
Mutual labels:  composer, composer-plugin
composer-inheritance-plugin
Opinionated version of Wikimedia composer-merge-plugin to work in pair with Bamarni composer-bin-plugin.
Stars: ✭ 20 (-82.46%)
Mutual labels:  composer, composer-plugin
Composer Normalize
🎵 Provides a composer plugin for normalizing composer.json.
Stars: ✭ 602 (+428.07%)
Mutual labels:  composer, composer-plugin
composer-velocita
Velocita - Composer plugin for transparent caching
Stars: ✭ 26 (-77.19%)
Mutual labels:  composer, composer-plugin
cyclonedx-php-composer
Create CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
Stars: ✭ 20 (-82.46%)
Mutual labels:  composer, composer-plugin
Composer Changelogs
📓 Display better summary after Composer update
Stars: ✭ 540 (+373.68%)
Mutual labels:  composer, composer-plugin
composer-repl
A REPL for PHP built into Composer (using PsySH)
Stars: ✭ 81 (-28.95%)
Mutual labels:  composer, composer-plugin
Awesome Composer
😎 A curated awesome list for Composer, Packagist, Satis, Plugins, Scripts, Composer related resources, tutorials.
Stars: ✭ 738 (+547.37%)
Mutual labels:  composer, composer-plugin
Composer Dropin Installer
Use composer for installing dropin dependencies
Stars: ✭ 30 (-73.68%)
Mutual labels:  composer, composer-plugin
Rtorrent Cleaner
🧹 rtorrent-cleaner is a tool to clean up unnecessary files in rtorrent
Stars: ✭ 36 (-68.42%)
Mutual labels:  cleaner, composer
composer-diff
Compares composer.lock changes and generates Markdown report so you can use it in PR description.
Stars: ✭ 51 (-55.26%)
Mutual labels:  composer, composer-plugin
composer-cost
Displays cost/size of each composer package installed.
Stars: ✭ 31 (-72.81%)
Mutual labels:  composer, composer-plugin
wp-translation-downloader
Composer plugin to download WordPress translations
Stars: ✭ 35 (-69.3%)
Mutual labels:  composer, composer-plugin
composer-patches-plugin
Plugin for composer to apply patches onto dependencies.
Stars: ✭ 75 (-34.21%)
Mutual labels:  composer, composer-plugin
Composer Registry Manager
🛠 🔨 Composer registry manager that help to easily switch to the composer repository you want.
Stars: ✭ 448 (+292.98%)
Mutual labels:  composer, 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 (+71.93%)
Mutual labels:  composer, composer-plugin
composer-localdev-plugin
Composer Plugin for local development
Stars: ✭ 31 (-72.81%)
Mutual labels:  composer, composer-plugin
Composer Merge Plugin
Merge one or more additional composer.json files at Composer runtime
Stars: ✭ 718 (+529.82%)
Mutual labels:  composer, composer-plugin
Composer Notifier
💬 Display desktop notification after Composer install / update
Stars: ✭ 42 (-63.16%)
Mutual labels:  composer, composer-plugin

Victor The Cleaner for Composer

Downloads this Month Build Status

This tool removes unnecessary files and directories from Composer vendor directory.

The Cleaner leaves only directories containing the source files needed to use the libraries. These are located according to the autoload section of composer.json in each installed library. Conversely for example, tests are files that are not needed for use, so they are removed.

Installation

composer require dg/composer-cleaner

Then simply run composer update or composer require ... and the Cleaner automatically removes unnecessary files when new libraries are installed.

Configuration

Some libraries also requires other files/directories, which the the Cleaner judged to be unnecessary. In this case, you can list them (specify paths to be ignored), in the configuration and the tool will keep them. Or you can specify that some libraries should not be cleaned at all.

Simply add a extra > cleaner-ignore section to composer.json file:

{
	"extra": {
		"cleaner-ignore": {
			"slevomat/eet-client": [  // name of package
				"wsdl*"               // list of files or subdirectories, you can use wildcards `*` and `?`
			],

			"mpdf/mpdf": true         // ignores whole package
		}
	}
}

Support Project

Do you like Victor The Cleaner? Are you looking forward to the new features?

Donate

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].