2017 © Pedro Peláez
 

composer-plugin composer-cleaner

Victor The Cleaner: removes unnecessary files from vendor directory.

image

dg/composer-cleaner

Victor The Cleaner: removes unnecessary files from vendor directory.

  • Friday, June 22, 2018
  • by david@grudl.com
  • Repository
  • 12 Watchers
  • 78 Stars
  • 20,975 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 9 Forks
  • 4 Open issues
  • 9 Versions
  • 18 % Grown

The README.md

Victor The Cleaner for Composer

Downloads this Month Tests, (*1)

This tool removes unnecessary files and directories from Composer vendor directory., (*2)

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., (*3)

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., (*4)

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., (*5)

Simply add a extra > cleaner-ignore section to composer.json file:, (*6)

{
    "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?, (*7)

Donate, (*8)

The Versions

22/06 2018

dev-master

9999999-dev

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

20/09 2017

v2.0

2.0.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

02/05 2017

v1.1

1.1.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

21/03 2017

v0.5

0.5.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

21/03 2017

v1.0

1.0.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

27/02 2017

v0.4

0.4.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

25/02 2017

v0.3

0.3.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

composer

14/03 2015

v0.2

0.2.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

 

composer

05/01 2015

v0.1

0.1.0.0

Victor The Cleaner: removes unnecessary files from vendor directory.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

composer