Releases: usystems/webling-api-php
Releases · usystems/webling-api-php
1.3.1
Add support for binary files caching
Support for binary files (images/files) caching has been added.
- The interface
ICache
now has a new functiongetObjectBinary()
. - The
FileCacheAdapter
andIFileCacheAdapter
have been updated to support the new functions. - Starting this release, only PHP >= 5.6 is tested and supported
Full Changelog: 1.2.0...1.3.0
Adding possibility to fetch multiple objects at once
- A new method
getObjects
have been added to fetch multiple objects at once. See REAMDE.md on how to use it. - The Cache has been refactored and CacheAdapters were introduced to make writing adapters for other systems easier
- The
Webling\Cache\FileCache
has been marked as deprected and will be removed in the future. Use the more genericWebling\Cache\Cache
with theWebling\CacheAdapters\FileCacheAdapter
instead. The examples have been adjusted.
Change Authentication Method
- cURL and JSON Extensions are now requirements in the package.json #1
- Authentication is now done with headers instead of url parameters. Thanks to @AScheuss and @cyrillbolliger for the pull request. #2
Bugfix Release
Always delete cache when definitions change
Added caching layer
The FileCache lets you cache API requests. It does check which objects have changed and only fetches the changed objects.
This is how you can use the FileCache layer:
// create a cache object
$client = new Webling\API\Client('https://demo.webling.ch','MY_APIKEY')
$cache = new FileCache($client, [
'directory' => './webling_cache'
]);
// get object
$cache->getObject('member', 506);
// get root objects
$cache->getObject('membergroup');
// check for updates and renew cache
$cache->updateCache();
// clear the whole cache
$cache->clearCache();
Enable SSL certificate checking
The library now checks SSL certificates. This could lead to some problems on local Windows PHP installations.
If your SSL Certificate check fails, you have the following options:
- update your PHP Certificate File, see http://kb.ucla.edu/articles/how-do-i-use-curl-in-php-on-windows (Recommended)
- use the http protocol (specify the domain like: "http://YOURDOMAIN.webling.ch")
Initial Release
This is the inital release version of the library.