PHPackages                             ncuesta/clinner - 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. ncuesta/clinner

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

ncuesta/clinner
===============

Command execution abstraction

1.0.0(12y ago)5714.2k↓14.3%8[2 issues](https://github.com/ncuesta/Clinner/issues)1MITPHPPHP &gt;=5.3

Since May 7Pushed 7y ago2 watchersCompare

[ Source](https://github.com/ncuesta/Clinner)[ Packagist](https://packagist.org/packages/ncuesta/clinner)[ Docs](http://ncuesta.github.com/Clinner)[ RSS](/packages/ncuesta-clinner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

Clinner
=======

[](#clinner)

[![Build Status](https://camo.githubusercontent.com/28270a3465c32d288d0ab30adcdc89d5c6bbc26ffcc194fa008ce93486059abe/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6e6375657374612f436c696e6e65722e706e67)](http://travis-ci.org/ncuesta/Clinner)

`Clinner` is a PHP 5.3+ Command-Line Interface commands execution abstraction.

Advantages
----------

[](#advantages)

`Clinner` has the following benefits:

- Minimalistic.
- Simple and easy to use.
- `Clinner` uses [Composer](http://getcomposer.org).
- Fluent API.
- Higher-level and object oriented interface to commands.
- Command pipes, **regardless of the underlying OS**.
- Commands might be actual command-line executables or PHP code.
- *Yes, you can mix commands and PHP code in an OO way!*
- Easily extendable through Interface implementation.
- MIT Licensed.

Usage
-----

[](#usage)

### Simple usage

[](#simple-usage)

The most basic use of `Clinner` consists of installing it as a dependency via Composer and then including Composer's `autoloader.php` in your code:

1. Create (if needed) a `composer.json` file or add an entry to your existing one:

```
    {
        "name": "my/nifty-project",

        "require": {
            "ncuesta/clinner": "dev-master"
        }
    }
```

2. Include Composer's `autoload.php` file on your code:

```
