PHPackages                             cliphar/cliphar - 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. cliphar/cliphar

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

cliphar/cliphar
===============

PHP framework for CLI apps

2.0.1(10y ago)122431MITPHPPHP &gt;=5.4.0

Since Jan 21Pushed 10y ago4 watchersCompare

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

READMEChangelogDependencies (5)Versions (5)Used By (1)

Cliphar
=======

[](#cliphar)

[![Build Status](https://camo.githubusercontent.com/f4745c4d322b1c93f5133faaa0a58abe5f5465d5c94503152ed345fdc624a041/68747470733a2f2f7472617669732d63692e6f72672f6a6a746f72726f676c6f73612f636c69706861722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jjtorroglosa/cliphar)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/abae0e670d9cdc64853095ce35f7011b8bccbc4b8182885aa5631f482e4348fe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6a746f72726f676c6f73612f636c69706861722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jjtorroglosa/cliphar/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f803ae04b693220ea16a1017d55adf5eb363f5634c02742b0194b43320e48f62/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6a746f72726f676c6f73612f636c69706861722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jjtorroglosa/cliphar/?branch=master)

A zero-intrusive PHP microframework to instantly create command line apps.

[![Demo](demo.gif)](demo.gif)

1. Features
-----------

[](#1-features)

- Container Interop interfaces for IoC. Laravel's container implementation adapter provided.
- Logger implementation satisfying PSR-3 LoggerInterface
- ServiceProvider interface to register services into the application

2. Creating a cliphar application
---------------------------------

[](#2-creating-a-cliphar-application)

The easiest way to create a new application is using composer create-project:

```
composer create-project cliphar/cliphar-skeleton cliphar-demo
cd cliphar-demo
php stub.php
```

### 2.1 Adding a command

[](#21-adding-a-command)

Edit `resources/commands.php` and add there your awesome commands:

```
