PHPackages                             igor-kozhevnikov/cross - 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. igor-kozhevnikov/cross

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

igor-kozhevnikov/cross
======================

Library for creating console commands

v1.13.1(2y ago)01452MITPHPPHP ^8.1

Since May 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/igor-kozhevnikov/cross)[ Packagist](https://packagist.org/packages/igor-kozhevnikov/cross)[ Docs](https://github.com/igor-kozhevnikov/cross)[ RSS](/packages/igor-kozhevnikov-cross/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (24)Used By (2)

Cross
=====

[](#cross)

[![PHP](https://camo.githubusercontent.com/a4067862e5de8e73295c3ab3f2b35a702602a574dedfbf19cbb34c6ef5cc5e57/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/igor-kozhevnikov/cross)[![License](https://camo.githubusercontent.com/b757ff9a955e7f3dc760a137c3c78f798a67960727f5e6a80b541969d8864345/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69676f722d6b6f7a6865766e696b6f762f63726f73733f7374796c653d666c61742d737175617265)](https://github.com/igor-kozhevnikov/cross)[![Release](https://camo.githubusercontent.com/915bde512ad011fbd6e855beeee4f89c4155cfd07fabe225b30aabbb872a9278/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f69676f722d6b6f7a6865766e696b6f762f63726f73733f7374796c653d666c61742d737175617265)](https://github.com/igor-kozhevnikov/cross)

Library for creating console commands.

Install
-------

[](#install)

```
composer required igor-kozhevnikov/cross
```

Configuration
-------------

[](#configuration)

Run the follow command to create config.

Available extensions: `php` `json`.

```
./vendor/bin/cross config []
```

A `cross.php` or `cross.json` config file locates in the root directory.

The `plugins` and `commands` array contains definitions and configurations of plugins and commands.

For example:

```
