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)[1 PRs](https://github.com/ivuorinen/branch-usage-checker/pulls)MITPHPPHP ^8.2CI failing

Since Dec 23Pushed 3w 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 1w ago

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

Maintenance68

Regular maintenance activity

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.8% 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

648d 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 (43 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 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.9k556.2M21.4k](/packages/laravel-framework)[mehrancodes/laravel-harbor

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

99100.2k](/packages/mehrancodes-laravel-harbor)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.7k367.2M12.3k](/packages/nunomaduro-collision)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

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