PHPackages                             imliam/killposer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. imliam/killposer

ActiveProject[CLI &amp; Console](/categories/cli)

imliam/killposer
================

Interactively find and delete Composer vendor directories to reclaim disk space

1.0.2(2w ago)14↓100%MITPHPPHP ^8.4

Since May 23Pushed 2w agoCompare

[ Source](https://github.com/imliam/killposer)[ Packagist](https://packagist.org/packages/imliam/killposer)[ Docs](https://github.com/imliam/killposer)[ RSS](/packages/imliam-killposer/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

killposer
=========

[](#killposer)

Iinteractively find and delete Composer `vendor/` directories to reclaim disk space - like [`npkill`](https://github.com/voidcosmos/npkill) but for PHP.

```
$ killposer ~/projects

  Scanning for Composer projects... ✓

┌ Select vendor directories to delete ──────────────────────────────┐
│ › ◼ my-app                     · 48.3 MB · 2025-11-02                │
│   ◻ old-api                    · 31.1 MB · 2024-06-14                │
│   ◻ legacy-plugin              · 12.7 MB · 2023-09-30                │
└───────────────────────────────────────── Space to toggle, Enter ─┘

  Delete 1 vendor directory totalling 48.3 MB? No / Yes

  Deleted /home/user/projects/my-app/vendor

```

Installation
------------

[](#installation)

killposer requires PHP 8.4+. Using [Composer](https://getcomposer.org/), you can install it globally with the following command:

```
composer global require imliam/killposer
```

Alternatively, you can use [cpx](https://cpx.dev) to run killposer without installing it:

```
cpx imliam/killposer ~/projects
```

Usage
-----

[](#usage)

```
killposer [options] []

```

Argument / OptionDescriptionDefault`path`Directory to scanCurrent working directory`--depth=N`Maximum directory depth to scan`2``-f`, `--force`Delete without confirmation prompt-Scan the current directory:

```
killposer
```

Scan a specific path:

```
killposer ~/projects
```

Scan deeper (e.g. a monorepo with nested packages):

```
killposer ~/projects --depth=4
```

Delete without a confirmation prompt (e.g. in a script):

```
killposer ~/projects --force
```

How it works
------------

[](#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.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance96

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

18d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e8a14b9f997cf85aacea7d39da9dc33c38cc05fe03360578327ea9bcb25f4d9?d=identicon)[ImLiam](/maintainers/ImLiam)

---

Top Contributors

[![imliam](https://avatars.githubusercontent.com/u/4326337?v=4)](https://github.com/imliam "imliam (4 commits)")

---

Tags

composerclivendorcleanupDisk Space

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/imliam-killposer/health.svg)

```
[![Health](https://phpackages.com/badges/imliam-killposer/health.svg)](https://phpackages.com/packages/imliam-killposer)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13045.3M6.1k](/packages/illuminate-console)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

761.1k](/packages/whatsdiff-whatsdiff)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
