PHPackages                             ruleshub/cli - 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. ruleshub/cli

ActiveComposer-plugin[CLI &amp; Console](/categories/cli)

ruleshub/cli
============

RulesHub CLI — install, publish, and manage AI coding tool assets. Composer plugin that downloads the canonical Rust binary from GitHub Releases on install.

v0.2.0(2mo ago)04MITPHPPHP &gt;=8.2

Since May 9Pushed 2mo agoCompare

[ Source](https://github.com/lozymon/ruleshub-cli-php)[ Packagist](https://packagist.org/packages/ruleshub/cli)[ Docs](https://ruleshub.dev)[ RSS](/packages/ruleshub-cli/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

ruleshub/cli (Composer wrapper)
===============================

[](#ruleshubcli-composer-wrapper)

Composer package that installs the [RulesHub CLI](https://ruleshub.dev) into your PHP project.

This package is a **wrapper**: it ships no PHP business logic. On `composer require`, a tiny Composer plugin downloads the matching native Rust binary from the canonical [GitHub Releases](https://github.com/lozymon/ruleshub/releases), verifies its SHA256 against the published `SHA256SUMS`, and places it at `vendor/bin/ruleshub`.

Install
-------

[](#install)

```
# per-project (recommended)
composer require --dev ruleshub/cli

# system-wide
composer global require ruleshub/cli
```

After install, `vendor/bin/ruleshub` (or `~/.composer/vendor/bin/ruleshub` for global) is on your `PATH`.

### About the "allow-plugins" prompt

[](#about-the-allow-plugins-prompt)

The first time you run `composer require ruleshub/cli`, Composer will ask:

```
ruleshub/cli contains a Composer plugin which is currently not in your allow-plugins config.
Do you trust "ruleshub/cli" to execute code and wish to enable it now?

```

Answer **`y`** — Composer adds this to your `composer.json`:

```
"config": {
  "allow-plugins": {
    "ruleshub/cli": true
  }
}
```

The plugin only does one thing: download the binary on install. You can read its source at [`src/Plugin.php`](https://github.com/lozymon/ruleshub/blob/main/packages-php/cli/src/Plugin.php) and [`src/Installer.php`](https://github.com/lozymon/ruleshub/blob/main/packages-php/cli/src/Installer.php).

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

[](#requirements)

- PHP 8.2+
- `ext-zip` (for Windows builds; no-op on Unix)
- `ext-openssl` (HTTPS download)
- `tar` (for Linux/macOS extraction)

Supported platforms
-------------------

[](#supported-platforms)

The wrapper auto-detects your platform and downloads the matching binary:

OS / archTargetLinux x86\_64`x86_64-unknown-linux-musl` (statically linked, runs on any glibc/musl distro)Linux ARM64`aarch64-unknown-linux-musl`macOS Intel`x86_64-apple-darwin`macOS Apple Silicon`aarch64-apple-darwin`Windows x86\_64`x86_64-pc-windows-msvc`Versioning
----------

[](#versioning)

This package version always matches the binary version it installs — `ruleshub/cli:0.1.0-alpha.1` installs `ruleshub@0.1.0-alpha.1`.

Override the version
--------------------

[](#override-the-version)

Useful for testing or pinning to an older binary:

```
RULESHUB_VERSION=0.1.0-alpha.2 composer install
```

What this package is **not**
----------------------------

[](#what-this-package-is-not)

- Not a PHP reimplementation of the CLI. The CLI is one Rust binary; every distribution channel (npm, pip, Composer, install scripts, GitHub Releases) ultimately runs the same bytes.
- Not a polyfill or fallback. If the binary download fails, the package leaves a placeholder shim in place that prints a clear error.

Architecture
------------

[](#architecture)

See [the CLI architecture doc](https://ruleshub.dev/docs/contributing/cli-architecture) for the full one-binary-many-wrappers model.

License
-------

[](#license)

MIT — same as the canonical CLI.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

8

Last Release

74d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/859a2abd0a988efbfd869fb2d3c837871f175084dad90c1677ada11c711e13d8?d=identicon)[lozymon](/maintainers/lozymon)

---

Top Contributors

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

---

Tags

cliairulescursorclaude

### Embed Badge

![Health badge](/badges/ruleshub-cli/health.svg)

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

###  Alternatives

[guanguans/ai-commit

Automagically generate conventional git commit message with AI. - 使用 AI 自动生成约定式 git 提交信息。

39631.6k10](/packages/guanguans-ai-commit)

PHPackages © 2026

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