sc0/vendors-cleanup

This package removes unwanted files from vendor directory

Installs: 21 217

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Language:Shell

0.5.2 2019-12-22 15:47 UTC

This package is auto-updated.

Last update: 2024-04-23 01:09:08 UTC


README

Clear php vendor-dir from unwanted files

Script removes:

  • tests and related files
  • docs
  • composer files
  • all dotfiles
  • Symfony's WebProfilerBundle and DebugBundle which are not needed in production environment
  • Symfony's Intl data

Why?

On typical Symfony installation we have about ~10k files

$ find vendor -type f | wc -l
   12843

But a big part of them is not required in production environment and may be removed

$ ./vendor/bin/clear_vendors
$ find vendor -type f | wc -l
   5579

Usage

composer require sc0/vendors-cleanup
./vendor/bin/clear_vendors