PHPackages                             mileschou/pherm - 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. mileschou/pherm

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

mileschou/pherm
===============

A command line terminal utility in PHP

v0.6.0(6y ago)173MITPHPPHP &gt;=7.2

Since Jun 23Pushed 5y agoCompare

[ Source](https://github.com/MilesChou/pherm)[ Packagist](https://packagist.org/packages/mileschou/pherm)[ RSS](/packages/mileschou-pherm/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (9)Versions (9)Used By (0)

Pherm - the terminal utility written by PHP
===========================================

[](#pherm---the-terminal-utility-written-by-php)

[![tests](https://github.com/MilesChou/pherm/workflows/tests/badge.svg)](https://github.com/MilesChou/pherm/workflows/tests/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/74b7eb05f24783c4f5aa8124e6322391fc3f60010d23b5d3a90a3b614754eb0a/68747470733a2f2f636f6465636f762e696f2f67682f4d696c657343686f752f706865726d2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/MilesChou/pherm)[![Codacy Badge](https://camo.githubusercontent.com/ecd055756d41fdf992ca5f1972daaa04744080037843b88f10e3dff7421522d9/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3364316538616362323864613464616639346236343966383539613237316237)](https://www.codacy.com/manual/MilesChou/pherm)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/oidcphp/core/blob/master/LICENSE)

> This repo is fork from [`php-school/terminal`](https://github.com/php-school/terminal)

Small utility to help provide a simple, consist API for terminal interaction.

See [examples](/examples) to know how to use.

Usage
-----

[](#usage)

Hello world example:

```
$container = new Container();
$container->instance(Input::class, new InputStream());
$container->instance(Output::class, new OutputStream());

$terminal = (new Terminal($container))
    ->enableInstantOutput()
    ->bootstrap();

$terminal->clear();

$str = 'Hello world!';

$terminal->cursor()->center(-(mb_strlen($str) / 2))->write($str);

$terminal->cursor()->bottom();
```

Credits
-------

[](#credits)

- [MilesChou](https://github.com/MilesChou)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.7% 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 ~24 days

Recently: every ~0 days

Total

8

Last Release

2343d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.1

v0.3.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/20872dcc4b888075f03819d5470db8198ffcc5f9edb791aba5f007e34355a6c9?d=identicon)[MilesChou](/maintainers/MilesChou)

---

Top Contributors

[![MilesChou](https://avatars.githubusercontent.com/u/1258752?v=4)](https://github.com/MilesChou "MilesChou (109 commits)")[![AydinHassan](https://avatars.githubusercontent.com/u/2817002?v=4)](https://github.com/AydinHassan "AydinHassan (24 commits)")[![Lynesth](https://avatars.githubusercontent.com/u/5318258?v=4)](https://github.com/Lynesth "Lynesth (8 commits)")[![mikeymike](https://avatars.githubusercontent.com/u/2174476?v=4)](https://github.com/mikeymike "mikeymike (3 commits)")

---

Tags

phpterminalcliconsoleterminal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mileschou-pherm/health.svg)

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[php-school/cli-menu

A command line menu helper in PHP

2.0k1.1M27](/packages/php-school-cli-menu)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)[splitbrain/php-cli

Easy command line scripts for PHP with opt parsing and color output. No dependencies

177817.2k28](/packages/splitbrain-php-cli)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)

PHPackages © 2026

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