As they say, Cilex is "a lightweight framework for creating PHP CLI scripts inspired by Silex". I've been reading the code and it's smart, clean and I think it could do the job.
The Cilex app is a Pimple container with other several containers for configuration loaders (YAML, JSON, XML, PHP), Doctrine, Monolog, etc. We could make a simple refactor and encapsulate the command loading logic in a CommandProvider. Also, a TaskHelperProvider could inject the required helper, as mysql, into tasks.
Another 'win' could be the 'compilation' feature. Once the project is close (so all the recipes have been tested and veified), you can compile the code into a single phar and use it with any set of configuration files.
As they say, Cilex is "a lightweight framework for creating PHP CLI scripts inspired by Silex". I've been reading the code and it's smart, clean and I think it could do the job.
The Cilex app is a Pimple container with other several containers for configuration loaders (YAML, JSON, XML, PHP), Doctrine, Monolog, etc. We could make a simple refactor and encapsulate the command loading logic in a CommandProvider. Also, a TaskHelperProvider could inject the required helper, as mysql, into tasks.
Another 'win' could be the 'compilation' feature. Once the project is close (so all the recipes have been tested and veified), you can compile the code into a single phar and use it with any set of configuration files.