Search

XPCLI: Command line classes

friebe It's been a while since RFC #0102 has been implemented, and since then a couple of questions have arisen on how to use the runnable classes proposed within it and what their benefits over plain-old PHP scripts are.
From the news


XAR support in doclet command

.
From the news


5.7.5-RELEASE: Command Line

kiesel The XP team is proud to announce the release of 5.7.5.
From the news


Windows runners on Cygwin: Command line quoting fixed

friebe The Windows runners have been fixed to handle quoting in single-quoted command line arguments correctly.
From the news


SDK

The xp utility, The xpcli utility, The unittest utility, The xar utility.
From the documentation


RFC #0102: XP Class Runner

friebe Scope of Change A runner script (similar to the unittest runner) will be created to run classes as scripts.
From the news


5.7.7-RELEASE

gelli The XP team is proud to announce the availability of the 5.7.7-RELEASE, featuring improvements to the web test API, support for reading and creating zip files (RFC #0175) and zip compressed streams , easy access of standard input in command line classes as well as several overall improvements and bugfixes.
From the news


Enum usecases: Replace switch/case blocks

friebe When migrating parts of my photoblog's import scripts to command classes I stumbled upon the following block of code: switch ($group= $param->value('group')) { case 'day': $strategy= new GroupByDayStrategy(); break; case 'hour' : $strategy= new GroupByHourStrategy(); break; default: throw new IllegalArgumentException('No such grouping method "'.$group.'"'); } Except for putting this switch block into a GroupingStrategyFactory class to comply to DRY principles, this is basically OK, but I still wasn't happy having three (one interface, two concrete implementations) or four (for the case I'd add a factory) class files around for something this small.
From the news


BSD Runners

friebe BeastieThe XP runners could fail under certain circumstances on BSD operating systems if the /proc filesystem was not mounted.
From the news


XPath class revamped

friebe The XPath class has been rewritten from scratch.
From the news


Results

Found 27 items in 0.015 seconds.