Hi everyone.
I am looking to create a layer of automation for a PHP-based project, much like a set of Rake tasks. The project itself is not based on any framework (its a huge proprietary CMS, apparently poorly written in-house), so I cannot go with the flow here. We need to read the configs and classes in PHP, so gulp and rake - my natural choices here - are a no go.
What I need is a good automation tool to write lightweight tasks:
- in PHP,
- not tied to any framework,
- not carrying too much of libraries with it,
- not too esoteric (like I’m not really expecting a DSL and everything to be a lambda or even an object, it should rather be as simple to grasp as it gets - procedural approach or even plain PHP is good enough).
I basically need my automation scripts to have a conventional way of launching from command line (so that a necessity for php -xc£h%¥ ./path/to/tool ./path/to/file
for each task wouldn’t scare away my team). I need this tool to cd
to the root dir of the project, no matter which subfolder I launch the task in (like all automation tools do). I need it to identify and launch the routine I pointed to in command line (sometimes with a few parameters maybe). Sometimes I may need to launch it on the servers where no phpize and stuff like that may ever be available (think corporate environments), so heavy dependencies on Composer or PEAR or similar code repositories are not a good feature - the distribution should be as compact as possible. That’s basically it.
I saw something called phake, but apparently there are a few projects with this name and this alone might confuse the other team in using the tool. Although if you can really recommend that one, I’ll try to use it. Otherwise, I’m all open to your suggestions. Many thanks.