MilcovLib is a PHP library for CLI execution -- it supports all the typical CLI tasks, such as parameter parsing, VT100 colour output, syslog error output etc. Currently the status is pre-alpha (VT100 codes - colour and movement) -- sample code included.