Add php script to list projects

Minor: can we get some whitespace around the dash?
Minor: Use PHP_EOL constant rather than \r\n