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

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

w3lifer/php-shell
=================

PHP Shell

1.0.1(1y ago)061MITPHPPHP ^8.0

Since Feb 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/w3roman/php-shell)[ Packagist](https://packagist.org/packages/w3lifer/php-shell)[ RSS](/packages/w3lifer-php-shell/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

[php-shell](https://packagist.org/packages/w3lifer/php-shell)
=============================================================

[](#php-shell)

- [Installation](#installation)
- [Usage](#usage)
    - [Methods](#methods)
- [Tests](#tests)

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

[](#installation)

```
composer require w3lifer/php-shell
```

Usage
-----

[](#usage)

### Methods

[](#methods)

- `public function ask(string $question): string`
- `public function exec(string $command, bool $printCommand = false): array`
- `public function shell_exec(string $command, bool $printCommand = false): false|null|string`
- `public function system(string $command, bool $printCommand = false): array`
- `public function printLine(string $line): void`
- `public function printTitle(string $title): void`
- `public function getArgument(int $sequentialNumber): string`

Tests
-----

[](#tests)

```
make tests
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance43

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

2

Last Release

453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4186be143d9793bd7cc7c1bfffaf80de0ac52ca87b8fccebca0d38e73d5dae6c?d=identicon)[w3lifer](/maintainers/w3lifer)

---

Top Contributors

[![w3roman](https://avatars.githubusercontent.com/u/167295763?v=4)](https://github.com/w3roman "w3roman (15 commits)")

---

Tags

phpshell

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[alecrabbit/php-console-spinner

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

24032.0k2](/packages/alecrabbit-php-console-spinner)[dawood/phpchromepdf

A slim PHP wrapper around google-chrome to convert url to pdf or to take screenshots , easy to use and clean OOP interface

14980.5k](/packages/dawood-phpchromepdf)[ollyxar/php-malware-detector

PHP malware detector

12926.4k](/packages/ollyxar-php-malware-detector)[jyxo/php

Jyxo PHP Library

6460.8k](/packages/jyxo-php)[dawood/phpscreenrecorder

A slim PHP wrapper around ffmpeg to record screen,best for recording your acceptance test using selenium, easy to use and clean OOP interface

501.5k](/packages/dawood-phpscreenrecorder)

PHPackages © 2026

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