PHPackages                             lotfio/conso - 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. lotfio/conso

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

lotfio/conso
============

console applications for cool kids

2.0.0(5y ago)464683[1 PRs](https://github.com/lotfio/conso/pulls)1PHPCI failing

Since Jul 25Pushed 5y ago7 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (17)Used By (1)

 [![Conso Preview](https://user-images.githubusercontent.com/18489496/51750637-f351c280-20b2-11e9-97e3-f1e0232bb04a.png)](https://user-images.githubusercontent.com/18489496/51750637-f351c280-20b2-11e9-97e3-f1e0232bb04a.png)

 [![License](https://camo.githubusercontent.com/5e92e10c411f69daf42c727b2452d9c25b6a068446de98ce0527bebbcf10b46f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d663163343066)](https://camo.githubusercontent.com/5e92e10c411f69daf42c727b2452d9c25b6a068446de98ce0527bebbcf10b46f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d663163343066) [![PHP version](https://camo.githubusercontent.com/0659107e7341c246868468edd4b4c31db9f03483fcfda121147ee6dfb73b003f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d3334393864622e737667)](https://camo.githubusercontent.com/0659107e7341c246868468edd4b4c31db9f03483fcfda121147ee6dfb73b003f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d3334393864622e737667) [![Version](https://camo.githubusercontent.com/bfc8784739ffe62c7ed9015c2f341bfa3ee0573307b5040d879c0697045fe3e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302e302d3263336535302e737667)](https://camo.githubusercontent.com/bfc8784739ffe62c7ed9015c2f341bfa3ee0573307b5040d879c0697045fe3e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302e302d3263336535302e737667) [![Coverage](https://camo.githubusercontent.com/edaacf1fbd4948863aef9ecc53b54487090d6445213a7ddca18d4c42438b9d27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d34302532352d3237616536302e737667)](https://camo.githubusercontent.com/edaacf1fbd4948863aef9ecc53b54487090d6445213a7ddca18d4c42438b9d27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d34302532352d3237616536302e737667) [![Build Status](https://camo.githubusercontent.com/0232ba4861a790ec0a90016b3fe67ad3b15987dca3adf1bbaf8337ef8866be1e/68747470733a2f2f7472617669732d63692e6f72672f6c6f7466696f2f636f6e736f2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/0232ba4861a790ec0a90016b3fe67ad3b15987dca3adf1bbaf8337ef8866be1e/68747470733a2f2f7472617669732d63692e6f72672f6c6f7466696f2f636f6e736f2e7376673f6272616e63683d6d6173746572) [![StyleCi](https://camo.githubusercontent.com/f560c57901a3cec5a6b373e420a3d975c0ab4e9fd59da1dc3e47820adf11f7be/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136353833323636382f736869656c643f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/f560c57901a3cec5a6b373e420a3d975c0ab4e9fd59da1dc3e47820adf11f7be/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136353833323636382f736869656c643f6272616e63683d6d6173746572) [![Downloads](https://camo.githubusercontent.com/e7ccb5cd30a0fb9c7e0c33e23e70a847a41afa872d067013832103a32b736e14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f6164732d316b2d6537346333632e737667)](https://camo.githubusercontent.com/e7ccb5cd30a0fb9c7e0c33e23e70a847a41afa872d067013832103a32b736e14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f6164732d316b2d6537346333632e737667)

 **Conso (PHP console applications for cool kids).**

🔥 Introduction :
----------------

[](#-introduction-)

Conso is a simple, lightweight PHP package that helps you create (executable, `.phar`, shareable) command line applications easily.

[![conso](https://user-images.githubusercontent.com/18489496/91354364-8a798180-e7e4-11ea-8f47-2b67580aee02.gif)](https://user-images.githubusercontent.com/18489496/91354364-8a798180-e7e4-11ea-8f47-2b67580aee02.gif)

💥 Is it really lightweight ?
----------------------------

[](#collision-is-it-really-lightweight-)

[![Screen Shot 2020-07-27 at 6 12 41 PM](https://user-images.githubusercontent.com/18489496/88639724-616ab180-d0bd-11ea-873a-2e25ea1fa113.png)](https://user-images.githubusercontent.com/18489496/88639724-616ab180-d0bd-11ea-873a-2e25ea1fa113.png)

📌 Requirements :
----------------

[](#-requirements-)

- PHP &gt;= 7.2 or newer versions
- PHPUnit &gt;= 8 (for testing purpose)

🚀 Installation :
----------------

[](#-installation-)

- ***Via composer :***

```
composer require lotfio/conso
```

- ***for testing***

```
composer test
```

🎉 Write your first command
--------------------------

[](#-write-your-first-command)

- create a `commands.php` file.
- create a `conso` file (you can change the name as you like).
- include your `commands.php` file into `conso` executable file.
- it should look something like this.

```
#!/usr/bin/env php
