ruuds / composer-remove-paths
Composer plugin for removing files after install or update.
Installs: 2 394
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/ruuds/composer-remove-paths
Requires
- composer-plugin-api: ^1.0
- phpunit/phpunit: ^9.3
Requires (Dev)
- composer/composer: 1.0.*@dev
This package is auto-updated.
Last update: 2025-10-28 20:21:56 UTC
README
This Composer plugin allows you to remove paths (files and/or directories) while installing or updating packages, so you can remove unwanted files from your project, eg. before deploying to production.
Installation
Simply install the plugin with composer: composer require ruuds/composer-remove-paths
Configuration
For configuring the paths you need to set remove-paths within the extra of your root composer.json.
{
"extra": {
"remove-paths": [
"htdocs/robots.txt",
"htdocs/directory-to-remove"
]
}
}