Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Cilex a lightweight framework for creating PHP CLI scripts inspired by Silex
PHP
branch: master

This branch is 55 commits behind Cilex:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/Cilex
tests
.gitignore
.travis.yml
LICENSE
README.md
compile
composer.json
example.php
phpunit.xml.dist

README.md

Cilex, a simple Command Line Interface framework

Cilex is a simple command line application framework to develop simple tools based on Symfony2 components:

<?php
require_once __DIR__.'/cilex.phar';

$app = new \Cilex\Application('Cilex');
$app->command(new \Cilex\Command\GreetCommand());
$app->run();

Cilex works with PHP 5.3.2 or later and is heavily inspired on the Silex web micro-framework by Fabien Potencier.

Installation

Installing Cilex is as easy as it can get. Download the cilex.phar file and you're done!

License

Cilex is licensed under the MIT license.

FAQ

Q: How do I pass configuration into the application?

A: You can do this by adding the following line, where $configPath is the path to the configuration file you want to use:

$app->register(new \Cilex\Provider\ConfigServiceProvider(), array('config.path' => $configPath));

The formats currently supported are: YAML, XML and JSON

Something went wrong with that request. Please try again.