vardot/composer-optimizer

Composer plugin for removing development files.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 3

Open Issues: 0

Type:composer-plugin

pkg:composer/vardot/composer-optimizer

1.0.0-alpha1 2024-07-18 09:25 UTC

This package is not auto-updated.

Last update: 2025-09-26 12:31:53 UTC


README

Composer Optimizer

Composer plugin for removing development files and more upcoming.

License

Installation

  • Add repository
  • Install package
  • Trust/Allow the plugin
  • Configure it according to documentation

Sample composer.json file

{
    "name": "org/name",
    "repositories": {
        "composer-optimizer": {
            "type": "vcs",
            "url": "git@github.com:Vardot/composer-optimizer.git"
        }
    },
    "require": {
        "vardot/composer-optimizer": "^1.0@dev"
    },
    "config": {
        "vardot/composer-optimizer": {
            "clear": {
                "*" : "[docs]"
            }
        },
        "allow-plugins": {
            "vardot/composer-optimizer": true
        }
    },
    "extra": {
        "dev-files": {
            "docs": [
                "LICENSE.txt",
                "README.txt",
                "CHANGELOG.txt"
            ]
        }
    }
}

Development

$ git clone git@github.com:<your github account>/composer-optimizer.git
$ cd cleaner && composer install
$ git remote add upstream git@github.com:vardot/composer-optimizer.git

Notes

  • Tested on PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 8.1