Adds phing build files

Run using `phing` in the root of the project. It will be necessary to run `composer update` first.

PR includes additional CS fixes as a result of running `phing`.