Merge pull request #1 from radmar/master

Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT'
Fixed json encoder output for php <= 5.3.

Update the composer.json and Packager encoder.