Fix a syntax error in the phantomjs cookbook.
Add support for PHP 5.4.25 and 5.5.9.