Initial PHP library includes and test API stuff

Signed-off-by: Matthew Rayner <matt@mattrayner.co.uk>