Skip to content

Releases: usystems/webling-api-php

1.3.1

Choose a tag to compare

@demianh demianh released this 27 Aug 12:02

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

Choose a tag to compare

@demianh demianh released this 14 Feb 13:45

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

Choose a tag to compare

@demianh demianh released this 05 Apr 12:24
ff3f65f
  • 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

Choose a tag to compare

@demianh demianh released this 05 Oct 13:20
  • 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

Choose a tag to compare

@demianh demianh released this 23 May 13:17

Always delete cache when definitions change

Added caching layer

Choose a tag to compare

@demianh demianh released this 19 Jun 11:35

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

Choose a tag to compare

@demianh demianh released this 28 Nov 10:01

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

Choose a tag to compare

@demianh demianh released this 28 Nov 10:03

This is the inital release version of the library.