Skip to content

Releases: usystems/webling-api-php

1.3.1

27 Aug 12:02
Compare
Choose a tag to compare

What's Changed

  • Fixed a bug that prevented response caching from working properly for some requests.
  • PHP >=5.6 is now required in composer.json
  • Added PHP 8 tests

Full Changelog: 1.3.0...1.3.1

Add support for binary files caching

14 Feb 13:45
Compare
Choose a tag to compare

Support for binary files (images/files) caching has been added.

  • The interface ICache now has a new function getObjectBinary().
  • The FileCacheAdapter and IFileCacheAdapter 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

05 Apr 12:24
ff3f65f
Compare
Choose a tag to compare
  • 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 generic Webling\Cache\Cache with the Webling\CacheAdapters\FileCacheAdapter instead. The examples have been adjusted.

Change Authentication Method

05 Oct 13:20
Compare
Choose a tag to compare
  • 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

23 May 13:17
Compare
Choose a tag to compare

Always delete cache when definitions change

Added caching layer

19 Jun 11:35
Compare
Choose a tag to compare

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

28 Nov 10:01
Compare
Choose a tag to compare

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:

Initial Release

28 Nov 10:03
Compare
Choose a tag to compare

This is the inital release version of the library.