Skip to content
/ Cilex Public
forked from Cilex/Cilex

Cilex a lightweight framework for creating PHP CLI scripts inspired by Silex

License

Notifications You must be signed in to change notification settings

debo/Cilex

This branch is 74 commits behind Cilex/Cilex:develop.

Folders and files

NameName
Last commit message
Last commit date
Sep 6, 2012
Apr 15, 2012
Mar 23, 2012
Apr 18, 2012
Mar 23, 2012
Jul 26, 2012
Jul 28, 2012
Jul 31, 2012
Mar 23, 2012
Jul 31, 2012

Repository files navigation

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

  1. git clone this repository.
  2. Download composer: curl -s https://getcomposer.org/installer | php
  3. Install Cilex' dependencies: php composer.phar install
  4. Create the phar: php ./compile

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

About

Cilex a lightweight framework for creating PHP CLI scripts inspired by Silex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%