PHPackages                             lion/command - 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. lion/command

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

lion/command
============

library created with the function of executing commands from PHP.

v6.2.0(3mo ago)14.1k↑925%1MITPHPPHP &gt;=8.5CI passing

Since Apr 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/lion-packages/command)[ Packagist](https://packagist.org/packages/lion/command)[ RSS](/packages/lion-command/feed)WikiDiscussions 6.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (55)Used By (1)

[ ![presentation-lion-packages](https://private-user-images.githubusercontent.com/56183278/521466636-5e769661-804b-4dcd-9bcc-bcc7b03f7182.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ4OTcyNDcsIm5iZiI6MTc3NDg5Njk0NywicGF0aCI6Ii81NjE4MzI3OC81MjE0NjY2MzYtNWU3Njk2NjEtODA0Yi00ZGNkLTliY2MtYmNjN2IwM2Y3MTgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzMwVDE4NTU0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4NWFkZDU3ODM1NzNlNzZkYjI0NzhlOTI0YzE4MDFmYTNkZWYzZjlhN2Q5ZTUyYWY2MTQ5NDNmMDVmZDJiN2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.761jN29a5aPH0gkXKQTO3u85_SJFSPSn-8ic2xIhSPs)](https://dev.lion-packages.com/docs/library/content) [ ![Latest Stable Version](https://camo.githubusercontent.com/9b60e515261314773b71b87a281ae3be7c7ba281f7cf4c92eb07e2932675d3fd/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f636f6d6d616e642f76) ](https://packagist.org/packages/lion/command) [ ![Total Downloads](https://camo.githubusercontent.com/8b02b27a77d78b139ee6e830b9073f152e5eed5cbc97820a2d22cd3c935138b1/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f636f6d6d616e642f646f776e6c6f616473) ](https://packagist.org/packages/lion/command) [ ![License](https://camo.githubusercontent.com/d0b878e3f5da1c42c85b3086ccbc5bc16d8289bf388e81672a1dda94dbf28696/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f636f6d6d616e642f6c6963656e7365) ](https://github.com/lion-packages/command/blob/main/LICENSE) [ ![PHP Version Require](https://camo.githubusercontent.com/425b26447329d10631085eb2a1a609f26677d4572df54c09e65134dcb374cf09/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f636f6d6d616e642f726571756972652f706870) ](https://www.php.net/)

🚀 **Lion-Command** library created with the function of executing commands from PHP.

---

📖 Features
----------

[](#-features)

✔️ Add styles to console output.
✔️ Add commands to your application.

---

📦 Installation
--------------

[](#-installation)

Install the command using **Composer**:

```
composer require symfony/console lion/command
```

📝 License
---------

[](#-license)

The **command** is open-sourced software licensed under the [MIT License](https://github.com/lion-packages/command/blob/main/LICENSE).

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~29 days

Recently: every ~22 days

Total

49

Last Release

74d ago

Major Versions

1.x-dev → v2.02022-07-10

v2.10.0 → v3.0.02023-10-28

v3.3.0 → 4.x-dev2024-12-08

v4.0.0 → v5.0.02024-12-08

5.x-dev → v6.0.02025-12-02

PHP version history (6 changes)v1.0PHP &gt;=8.0.9

v1.3PHP &gt;=8.1

v3.1.0PHP &gt;=8.2

4.x-devPHP &gt;=8.3

v5.0.0PHP &gt;=8.4

v6.1.0PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/1419758fcb0259274d35f6d2cbfb5a60694baa74e99437d32dfec9a0d5c10d65?d=identicon)[lion-packages](/maintainers/lion-packages)

---

Top Contributors

[![Sleon4](https://avatars.githubusercontent.com/u/56183278?v=4)](https://github.com/Sleon4 "Sleon4 (152 commits)")[![GabrielPalac](https://avatars.githubusercontent.com/u/162063476?v=4)](https://github.com/GabrielPalac "GabrielPalac (13 commits)")[![jerezjustin](https://avatars.githubusercontent.com/u/132396080?v=4)](https://github.com/jerezjustin "jerezjustin (6 commits)")[![mcesmeralda](https://avatars.githubusercontent.com/u/96641807?v=4)](https://github.com/mcesmeralda "mcesmeralda (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![MMarioLP](https://avatars.githubusercontent.com/u/105904645?v=4)](https://github.com/MMarioLP "MMarioLP (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![JPCORREDOR05](https://avatars.githubusercontent.com/u/101783650?v=4)](https://github.com/JPCORREDOR05 "JPCORREDOR05 (1 commits)")[![LeinadAlberto](https://avatars.githubusercontent.com/u/127895160?v=4)](https://github.com/LeinadAlberto "LeinadAlberto (1 commits)")

---

Tags

bashcmdcommandcommand-linephpphp8powershellsymfonysymfony-commandsymfony-console

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lion-command/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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