PHPackages                             mvan/clitoris - 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. mvan/clitoris

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

mvan/clitoris
=============

Simple PHP framework for CLI tasks in your project

v1.1(6y ago)140MITPHPPHP &gt;=7.0.0

Since Apr 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/martinvancura/CLItoris)[ Packagist](https://packagist.org/packages/mvan/clitoris)[ RSS](/packages/mvan-clitoris/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

### CLItoris - Light weight framework to perform CLI tasks in PHP

[](#clitoris---light-weight-framework-to-perform-cli-tasks-in-php)

This library help with a structure of command line tasks in your project. It also allows you to print colored and formatted messages to terminal output. **Enjoy simplicity!**

Features
--------

[](#features)

- Routing and executing your CLI tasks
- Parsing given arguments to stdClass
- Tools for colored and formatted text output to terminal
- Creating and rendering tables

Setup
-----

[](#setup)

Add the library to your `composer.json` file in your project:

```
{
  "require": {
      "mvan/clitoris": "1.*"
  }
}
```

Use [composer](http://getcomposer.org) to install the library:

```
$ php composer.phar install
```

Composer will install CLItoris inside your vendor folder. Then you can add the following to your .php files to use the library with Autoloading.

```
require_once __DIR__ . '/vendor/autoload.php';
```

Alternatively, use composer on the command line to require and install CLItoris:

```
$ php composer.phar require mvan/clitoris:1.*

```

### Minimum Requirements

[](#minimum-requirements)

- PHP 7

Usage
-----

[](#usage)

### Define tasks

[](#define-tasks)

```
