Description
Cilex is a simple command line application framework to develop simple tools based on Symfony2 components:
Cilex alternatives and similar libraries
Based on the "Command Line" category.
Alternatively, view Cilex alternatives based on common mentions on social networks and blogs.
-
Cron Expression
CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due -
CLIFramework
A powerful command line application framework for PHP. It's an extensible, flexible component, You can build your command-based application in seconds! -
PHP console
🖥 PHP CLI application library, provide console options,arguments parse, console controller/command run, color style, user interactive, format information show and more. 功能全面的PHP命令行应用库。提供控制台选项、参数解析, 命令运行,颜色风格输出, 用户信息交互, 特殊格式信息显示 -
GetOptionKit
An object-oriented option parser library for PHP, which supports type constraints, flag, multiple flag, multiple values, required value checking -
bitexpert/captainhook-validateauthor
Captain Hook Plugin to check if commit author is valid (e.g. email in whitelist) -
bitexpert/captainhook-infection
Captain Hook Plugin to run InfectionPHP only against the changed files of a commit -
SitPHP/Commands
A simple yet powerful library to run console commands from the CLI or build a command application.
InfluxDB high-performance time series database

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Cilex or a related project?
Popular Comparisons
README
Cilex, a simple Command Line Interface framework
Cilex is a simple command line application framework to develop simple tools based on Symfony2 components:
<?php
if (!$loader = include __DIR__.'/vendor/autoload.php') {
die('You must set up the project dependencies.');
}
$app = new \Cilex\Application('Cilex');
$app->command(new \Cilex\Command\GreetCommand());
$app->command('foo', function ($input, $output) {
$output->writeln('Example output');
});
$app->run();
Cilex works with PHP 5.5.9 or later and is heavily inspired by the Silex web micro-framework by Fabien Potencier.
Installation
git clone
this repository.- Download composer:
curl -s https://getcomposer.org/installer | php
- Install Cilex' dependencies:
php composer.phar install
<!--
More Information
Read the documentation for more information. -->
Usage
- Create your new commands in
src/Cilex/Command/
- Add your new commands to
bin/run.php
- Run the commands as:
sh ./bin/run.php demo:greet world ./bin/run.php demo:greet world -y ./bin/run.php demo:greet world --yell ./bin/run.php demo:info
Creating a PHAR
- Download and install box:
sh curl -LSs https://box-project.github.io/box2/installer.php | php chmod +x box.phar mv box.phar /usr/local/bin/box
- Update the project phar config in box.json
- Create the package:
sh box build
- Run the commands:
sh ./cilex.phar demo:greet world ./cilex.phar demo:greet world -y ./cilex.phar demo:greet world --yell ./cilex.phar demo:info
- enjoy a lot.
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
*Note that all licence references and agreements mentioned in the Cilex README section above
are relevant to that project's source code only.