- Made caching function and variable static to accommodate sites/apps that use more than one client or do backend processing of multiple different patrons using saved tokens. If you were directly calling cache function or variable in your app, you will need to change those calls from static to non static
- Added access token to hash mechanism that creates hashes for request cache
- Added args to get_data function that calls the API
- Implemented a 'skip_read_from_cache' var to skip reading a request from cache in case it exists in the cache
- Library moved to use Patreon API v2 endpoints and calls
- Scopes added to examples and API url functions
- Autoloading has been moved to PSR4
- Art4 JSON parser library removed
- API class set to provide returns from the API in JSON, array, or object form - choice to parse in other ways (like using Art4 lib is left to the developer - ie, get JSON return and then feed to Art4 lib which can be installed separately)
- Caching of unique calls to API implemented in API class in order to speed up any repeated calls and reduce load on the API
- Library directory structure simplified
- Unnecessary includes and unnecessary files removed
- login_with_patreon.png and unlock_with_patreon.png images are added under assets/images for developers to use with their apps
- Unified flow example added to provide an example for content unlocking by having users login/register/pledge at Patreon and return to the app in just one smooth flow
- Webhook write example added - creates a webhook to notify your local app when there are any membership changes in your campaign
- Examples made more detailed and comprehensive
- Readme example reformatted, updated to API V2
- Art4 JSON lib removed in preparation for API v2 upgrade
- API class now allows JSON, array, object formatted returns from the API
- PSR4 autoloading
- Directory structure simplified
- Extra patreon.php file removed
- Example in readme updated to reflect the changes
- Unnecessary extra includes removed
- Cleanup on doc and examples
- Improve documentation in the README
- Fix snippet samples
- Add User-Agent string for correct platform attribution