PHPackages                             igor1parkin/smartcommand - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. igor1parkin/smartcommand

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

igor1parkin/smartcommand
========================

Was created for test exercises

v1.4.1(3y ago)013MITPHP

Since Nov 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/igor1parkin/smartcommand)[ Packagist](https://packagist.org/packages/igor1parkin/smartcommand)[ RSS](/packages/igor1parkin-smartcommand/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

SmartCommand
============

[](#smartcommand)

Проблема с композером
---------------------

[](#проблема-с-композером)

Видимо где-то допустил ошибку и библиотека перестала адекватно прикручиваться к example.php - если не успею попровавить прошу скачать и распоковать файл version\_without\_compose.zip для проверки работоспособности

Непосредственно файлы библиотеки расположены в папке `src`

Запуск команды
--------------

[](#запуск-команды)

```
php example.php command_name {verbose,overwrite} [log_file=app.log] {unlimited} [methods={create,update,delete}] [paginate=50] {log}
```

Вывод help'a команды
--------------------

[](#вывод-helpa-команды)

```
php example.php command_name {help}
```

Вывод команд
------------

[](#вывод-команд)

```
php example.php
```

Problem with parsing
--------------------

[](#problem-with-parsing)

```
* Костыль т.к. возникла проблема с парсингом агрумента {arg1,arg2}
* - массив $argv возвращает как ['arg1', 'arg2']
* а {arg1, arg2} как ['{arg1', 'arg2}']
* - это какие-то проблемы с моим оружением или нюанс задачи?
*/
public function parseArguments(): array
{
    $args = $_SERVER['argv'];
    $arguments = [];
    for ($i = 2; $i isNotOption($args[$i])) {
            $arguments[] = preg_replace('#[{}]+#', '', $args[$i]);
        }
    }

    return $arguments;
}
```

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

6

Last Release

1267d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7e28e26c41145f6a83a161a7632f5b984cd68c32734e5230f72824ac05eca42?d=identicon)[igor1parkin](/maintainers/igor1parkin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/igor1parkin-smartcommand/health.svg)

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

###  Alternatives

[hillholliday/craft-user-manual

Craft User Manual allows developers (or even content editors) to provide CMS documentation using Craft's built-in sections (singles, channels, or structures) to create a `User Manual` or `Help` section directly in the control panel.

8472.1k1](/packages/hillholliday-craft-user-manual)

PHPackages © 2026

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