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

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

isublimity/shell
================

Shell Helper

1.26(5mo ago)1128MITPHPPHP &gt;=5.5.0

Since Jun 17Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/isublimity/shell)[ Packagist](https://packagist.org/packages/isublimity/shell)[ Docs](https://github.com/isublimity/shell)[ RSS](/packages/isublimity-shell/feed)WikiDiscussions master Synced 1mo ago

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

Php cli helper
--------------

[](#php-cli-helper)

See other

Install
-------

[](#install)

```
composer require isublimity/shell

```

Use case
--------

[](#use-case)

Есть класс который нам нужно вызвать из консоли

```
class xyzActions
{
   /**
       * Получить список бла-бла
       *
       * @param string $name Назврание
       * @param bool $reg включить или выключить
       * @return array
       */
      public function listCommand($name,$reg=false)
      {
          echo "My name $name ";
          if ($reg) echo " ;) ";
          echo "\n";
      }
}
```

Подключаем обертку:

```
\Shell::name("xyz");
\Shell::run(
         new xyzActions()
     );
```

Получаем help:

```
> php test.php help
 xyz
------------------------------
> list		 -- Получить список бла-бла
			--name string,Назврание
			[--reg] bool,включить или выключить

```

Запускаем :

```
> php test.php list
Exception : Can`t call: xyzActions->listCommand() with empty param : name

> php test.php list --name=bob
My name bob

> php test.php list --name=bob --reg
My name bob  ;)

> php test.php --list --name=bob
My name bob
```

### Системные параметры

[](#системные-параметры)

```
-v [-vv | -vvv]
--wait
--help
-q

```

Цвета :

```
Shell::msg("ABC  FGHJ  Command();");

Shell::msg("message");

Shell::debug("DEBUG!");

Shell::info("INFO!");

Shell::warning("WARN!");

Shell::error("ERORR!!");
```

#### Заголовок для help

[](#заголовок-для-help)

```
class xyzActions
{
    public function getTitle()
    {
        return 'ABOUTE xyzActions - XYZ';
    }
}
```

#### Setters

[](#setters)

```
class xyzActions
{
    public function setColor($value)
    {
        echo "CALL setColor($value)\n";
    }
}

Автоматически вызовется если : > php test.php --color=YXA
```

### PID

[](#pid)

```
// Блокирует исполнение
Shell::maxExecutionMinutes(0.5);//30 seconds

Shell::dir(__DIR__); // сменить директорию
Shell::alertMail('igor@x.x'); // куда отпраить ошибки
Shell::setPathLog("/tmp/");   // куда записывать все сообщения
Shell::setPathPid("/tmp/");   // где PID
Shell::setExitCodeOnPidExists(2);   // Exit code on PID file Exists
Shell::setPidCommands(array('check','test')); // какие комманды можно запускать одновренменно
```

[![](https://camo.githubusercontent.com/97410e762aa5a5fba2d028fb5b032d8acc5d1837070f32f54c125acf7a11c15e/68747470733a2f2f6170692e6d6f6e6f736e61702e636f6d2f7270632f66696c652f646f776e6c6f61643f69643d72427650416c5551734c4a4a5558446b5339536433504b6c4d54654e3567)](https://camo.githubusercontent.com/97410e762aa5a5fba2d028fb5b032d8acc5d1837070f32f54c125acf7a11c15e/68747470733a2f2f6170692e6d6f6e6f736e61702e636f6d2f7270632f66696c652f646f776e6c6f61643f69643d72427650416c5551734c4a4a5558446b5339536433504b6c4d54654e3567)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance70

Regular maintenance activity

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~543 days

Recently: every ~285 days

Total

6

Last Release

177d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ba469925ed9db5829a03075623b27fc99fd104d4c66a7318e4a763352a3ba2b?d=identicon)[isublimity](/maintainers/isublimity)

---

Top Contributors

[![isublimity](https://avatars.githubusercontent.com/u/1861412?v=4)](https://github.com/isublimity "isublimity (19 commits)")[![sublimity-zz](https://avatars.githubusercontent.com/u/1270880?v=4)](https://github.com/sublimity-zz "sublimity-zz (2 commits)")

---

Tags

phpclishell

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nunomaduro/termwind

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

2.5k239.8M286](/packages/nunomaduro-termwind)[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[nunomaduro/laravel-console-task

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

2582.1M11](/packages/nunomaduro-laravel-console-task)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

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

PHPackages © 2026

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