Download the PHP package imliam/killposer without Composer
On this page you can find all versions of the php package imliam/killposer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imliam/killposer
More information about imliam/killposer
Files in imliam/killposer
Package killposer
Short Description Interactively find and delete Composer vendor directories to reclaim disk space
License MIT
Homepage https://github.com/imliam/killposer
Informations about the package killposer
killposer
Iinteractively find and delete Composer vendor/ directories to reclaim disk space - like npkill but for PHP.
Installation
killposer requires PHP 8.4+. Using Composer, you can install it globally with the following command:
Alternatively, you can use cpx to run killposer without installing it:
Usage
| Argument / Option | Description | Default |
|---|---|---|
path |
Directory to scan | Current working directory |
--depth=N |
Maximum directory depth to scan | 2 |
-f, --force |
Delete without confirmation prompt | - |
Scan the current directory:
Scan a specific path:
Scan deeper (e.g. a monorepo with nested packages):
Delete without a confirmation prompt (e.g. in a script):
How it works
killposer walks the given directory up to --depth levels deep, looking for folders that contain both a composer.json and a vendor/ directory. Results are sorted by vendor size (largest first) so the biggest wins are at the top.
Once you confirm, it deletes only the vendor/ directory - your source code is untouched. Run composer install in any project to restore it.
All versions of killposer with dependencies
illuminate/support Version ^12.0
laravel/prompts Version ^0.3
symfony/console Version ^7.0