PHPackages                             stdakov/terminal-request - 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. stdakov/terminal-request

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

stdakov/terminal-request
========================

Powerful tool for commands

v1.2(6y ago)015ApachePHPPHP &gt;=5.4.0

Since Mar 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stdakov/terminal-request)[ Packagist](https://packagist.org/packages/stdakov/terminal-request)[ RSS](/packages/stdakov-terminal-request/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

terminalRequest
===============

[](#terminalrequest)

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

[](#installation)

The preferred way to install this tool is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require stdakov/terminal-request

```

or add

```
"stdakov/terminal-request": "*"

```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';
```

Examples
--------

[](#examples)

```
php script.php command subCommand -a value1 -bc 'value2' --param1 value3 --param2 --pa "value4" --vk value5
```

```
$terminal = new Terminal\Request();

echo "Script:" . $terminal->getScript() . PHP_EOL;
echo "Command:" . $terminal->getCommand() . PHP_EOL;
echo "SubCommand:" . $terminal->getSubCommand() . PHP_EOL;
foreach ($terminal->getParams() as $paramName => $paramValue) {
    echo "Param $paramName has value '" . ($terminal->getParameter($paramName) === true ? "true" : $terminal->getParameter($paramName)) . "'" . PHP_EOL;
}

print_r($terminal->getParams());
```

Output

```
Script:script.php
Command:command
SubCommand:subCommand
Param a has value 'value1'
Param b has value 'true'
Param c has value 'value2'
Param param1 has value 'value3'
Param param2 has value 'true'
Param pa has value 'value4'
Param vk has value 'value5'
Array
(
    [a] => value1
    [b] => 1
    [c] => value2
    [param1] => value3
    [param2] => 1
    [pa] => value4
    [vk] => value5
)

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2337d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7be3a6670043ef598a1f64ecadb2eac788f4e985090fe2919bf1bfc7ff220abd?d=identicon)[stdakov](/maintainers/stdakov)

---

Top Contributors

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

---

Tags

phprequestsscript-phpscriptsterminalterminal-requestrequestconsoleterminalcommands

### Embed Badge

![Health badge](/badges/stdakov-terminal-request/health.svg)

```
[![Health](https://phpackages.com/badges/stdakov-terminal-request/health.svg)](https://phpackages.com/packages/stdakov-terminal-request)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

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

Aplus Framework CLI Library

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

A command line menu helper in PHP

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

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

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

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

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

PHPackages © 2026

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