PHPackages                             ivuorinen/branch-usage-checker - 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. ivuorinen/branch-usage-checker

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

ivuorinen/branch-usage-checker
==============================

GitHub Project branch usage checker.

0.1.1(1y ago)04[1 issues](https://github.com/ivuorinen/branch-usage-checker/issues)[6 PRs](https://github.com/ivuorinen/branch-usage-checker/pulls)MITPHPPHP ^8.2CI passing

Since Dec 23Pushed 2w ago1 watchersCompare

[ Source](https://github.com/ivuorinen/branch-usage-checker)[ Packagist](https://packagist.org/packages/ivuorinen/branch-usage-checker)[ Docs](https://github.com/ivuorinen/branch-usage-checker)[ RSS](/packages/ivuorinen-branch-usage-checker/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (10)Versions (8)Used By (0)

Branch Usage Checker
====================

[](#branch-usage-checker)

[![Packagist Version](https://camo.githubusercontent.com/7a6de83355dbb618aac248955d3eefef3031b9563ae57507ad355f757e5713ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6976756f72696e656e2f6272616e63682d75736167652d636865636b6572)](https://packagist.org/packages/ivuorinen/branch-usage-checker)[![License](https://camo.githubusercontent.com/6eeb240f61c65049ab5ae0243b587189976a11aada3ae2e035c194e3c1871cd9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6976756f72696e656e2f6272616e63682d75736167652d636865636b65722e737667)](https://packagist.org/packages/ivuorinen/branch-usage-checker)[![CI](https://camo.githubusercontent.com/9f5f0a8cf2d225ff05b14c4a29bcccdf323a7f0eea0756b67b7e5aee656ed20f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6976756f72696e656e2f6272616e63682d75736167652d636865636b65722f746573742d616e642d6275696c642e796d6c3f6272616e63683d6d6173746572266c6162656c3d4349)](https://github.com/ivuorinen/branch-usage-checker/actions/workflows/test-and-build.yml)

A CLI tool that cross-references GitHub branches with Packagist download statistics to identify branches safe to delete. Configure a lookback window (default 9 months), review a statistics table of per-branch downloads, and get a suggestion list of zero-download branches you can clean up.

Requirements
------------

[](#requirements)

- PHP 8.4+

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

[](#installation)

### Composer (global)

[](#composer-global)

```
composer global require ivuorinen/branch-usage-checker
```

### PHAR

[](#phar)

Download the latest `branch-usage-checker` PHAR from [GitHub Releases](https://github.com/ivuorinen/branch-usage-checker/releases), then:

```
chmod +x branch-usage-checker
./branch-usage-checker check
```

Usage
-----

[](#usage)

```
branch-usage-checker check  [months]

```

ArgumentDescriptionDefault`vendor/package`Packagist package name`months`Months to look back`9`### Example

[](#example)

```
$ branch-usage-checker check ivuorinen/branch-usage-checker 6

 Branch usage statistics for ivuorinen/branch-usage-checker
 ┌────────────────────┬────────┬────────┬────────┬────────┬────────┬────────┐
 │ Branch             │ 2025-7 │ 2025-8 │ 2025-9 │ 2025-… │ 2025-… │ 2025-… │
 ├────────────────────┼────────┼────────┼────────┼────────┼────────┼────────┤
 │ dev-master         │     42 │     38 │     51 │     47 │     55 │     60 │
 │ dev-feat/dto       │      0 │      0 │      0 │      0 │      0 │      0 │
 │ dev-fix/timeouts   │      3 │      1 │      0 │      0 │      0 │      0 │
 └────────────────────┴────────┴────────┴────────┴────────┴────────┴────────┘

 Suggestions — branches with zero downloads (safe to delete)
 ┌────────────────────┐
 │ Branch             │
 ├────────────────────┤
 │ dev-feat/dto       │
 └────────────────────┘

```

Development
-----------

[](#development)

```
git clone https://github.com/ivuorinen/branch-usage-checker.git
cd branch-usage-checker
composer install
```

CommandDescription`composer test`Run tests (Pest)`composer lint`Check code style (PHPCS, PSR-12)`composer format`Auto-fix code style (PHPCBF)`composer build`Build PHAR to `builds/`Pre-commit hooks ([CaptainHook](https://github.com/captainhookphp/captainhook)) are installed automatically and will run PHPCBF + PHPCS on staged PHP files.

License
-------

[](#license)

MIT — see [LICENSE](LICENSE) for details.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance70

Regular maintenance activity

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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 ~342 days

Total

3

Last Release

602d ago

PHP version history (2 changes)0.0.1PHP &gt;=8.1

0.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11024?v=4)[Ismo Vuorinen](/maintainers/ivuorinen)[@ivuorinen](https://github.com/ivuorinen)

---

Top Contributors

[![ivuorinen](https://avatars.githubusercontent.com/u/11024?v=4)](https://github.com/ivuorinen "ivuorinen (42 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

cliconsolegithubusagebranch

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ivuorinen-branch-usage-checker/health.svg)

```
[![Health](https://phpackages.com/badges/ivuorinen-branch-usage-checker/health.svg)](https://phpackages.com/packages/ivuorinen-branch-usage-checker)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

10097.5k](/packages/mehrancodes-laravel-harbor)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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