Added comment for Composer require.
Serialized JSON bodies in PHP.
Adapted to PHP 5 syntax.
Merge pull request #1 from LuckyMarmot/fixes

Fixes and adapted to JSON