PHPackages                             alfhen/php-shell - 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. alfhen/php-shell

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

alfhen/php-shell
================

Package with tools for creating php shell scripts

v0.1.4(10y ago)143MITPHP

Since Dec 17Pushed 10y agoCompare

[ Source](https://github.com/alfhen/phpshell)[ Packagist](https://packagist.org/packages/alfhen/php-shell)[ RSS](/packages/alfhen-php-shell/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

phpshell
========

[](#phpshell)

Tools for creating php shell scripts

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

[](#installation)

```
composer require alfhen/php-shell

```

Usage
-----

[](#usage)

### CliArgsParser:

[](#cliargsparser)

When creating a php shell script you can use the `CliArgsParser` to parse arguments passed to your shell scripts. The parser expects arguments to be passed in following format --argument='' note you should not write &lt;&gt; but just the raw value inside the quotes. Each argument should be separated with a space.

```
  // an array of the required argument keys, is not required
  $requiredAguments = ['argument_one', 'argument_two'];

  // get arguments as an associative array
  $parsedArguments = Alfhen\PhpShell\CliArgsParser::getArguments($requiredAguments);
```

### CliLogger:

[](#clilogger)

CliLogger is a tool that helps you print nicely formated lines to the terminal/console. It comes with three built in types: Info, Error and Success. It can be used as such:

```
Alfhen\PhpShell\CliLogger::info('This is an info message');

Alfhen\PhpShell\CliLogger::error('This is an error message');

Alfhen\PhpShell\CliLogger::success('This is a success message');
```

Happy coding and thanks for using the tools

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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 ~4 days

Total

5

Last Release

3832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/737efb54dd51c1c52e71bb30c0292f48675e60282aa0f73272697113542cdbe6?d=identicon)[alfhen](/maintainers/alfhen)

---

Top Contributors

[![alfhen](https://avatars.githubusercontent.com/u/5700924?v=4)](https://github.com/alfhen "alfhen (7 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alfhen-php-shell/health.svg)

```
[![Health](https://phpackages.com/badges/alfhen-php-shell/health.svg)](https://phpackages.com/packages/alfhen-php-shell)
```

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k271.5M378](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2592.3M13](/packages/nunomaduro-laravel-console-task)[nunomaduro/patrol

An elegant command-line tool that keeps your PHP Project's dependencies in check

276132.0k3](/packages/nunomaduro-patrol)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

29216.7k5](/packages/alecrabbit-php-cli-snake)

PHPackages © 2026

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