Added a PHP adaptation

Includes class, test script, and README edit for php