Patreon / patreon-php

Interact with the Patreon API via OAuth
Apache License 2.0
145 stars 41 forks source link

Intermediate dev release for removing Art4 lib, PSR4 autoloading and functioning examples #57

Closed codebard closed 5 years ago

codebard commented 5 years ago

Problem

Per concluded spec doc, Art4 JSON parser lib was slated for removal. Additionally, directory structure was to be simplified.

Solution

This PR removes Art4 JSON parser lib, allows developers to get array, object or raw JSON returns, simplifies directory structure by incorporating PSR4 autoloading and removing unneeded includes. get_data function that does requests to API is made public to allow developers to use their own custom requests. Example in readme is updated to work with the new setup. Still uses API v1

Verification

Tested and verified to be working in dev installations created by composer from the dev package at packagist.

Does this need tests

No.

codebard commented 5 years ago

Sorry - closing this PR since the master this was issued from is far ahead of this ref. I checked out this PR as a branch, updated it and pushed as new, the new PR will come from that branch with corrections included.