PHPackages                             usystems/webling-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. usystems/webling-api-php

ActiveLibrary[API Development](/categories/api)

usystems/webling-api-php
========================

Lightweight Webling API Wrapper

1.3.1(1y ago)5257.8k↑33.8%MITPHPPHP &gt;=5.6.0CI failing

Since Nov 25Pushed 1y ago5 watchersCompare

[ Source](https://github.com/usystems/webling-api-php)[ Packagist](https://packagist.org/packages/usystems/webling-api-php)[ RSS](/packages/usystems-webling-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

Webling API Wrapper for PHP
===========================

[](#webling-api-wrapper-for-php)

[![Build](https://github.com/usystems/webling-api-php/actions/workflows/ci.yml/badge.svg)](https://github.com/usystems/webling-api-php/actions/workflows/ci.yml)

A Lightweight PHP Wrapper to query the [Webling](https://www.webling.ch/) API.

Installation
------------

[](#installation)

Install with Composer:

```
composer require usystems/webling-api-php

```

Usage
-----

[](#usage)

### Simple usage

[](#simple-usage)

```
$api = new Webling\API\Client('https://demo.webling.ch','MY_APIKEY');

$response = $api->get('member/123');

if ($response->getStatusCode() < 400) {
    var_dump($response->getData());    // returns the parsed JSON
    var_dump($response->getRawData()); // returns the raw response string
}

$response = $api->put('/member', $data);
$response = $api->post('/member', $data);
$response = $api->delete('/member/123');
```

Create a new client with some options:

```
$options = [
    'connecttimeout' => 5, // connection timeout in seconds
    'timeout' => 10, // transfer timeout
    'useragent' => 'My Custom User-Agent' // custom user agent
];
$api = new Webling\API\Client('https://demo.webling.ch','MY_APIKEY', $options);
```

For more examples see the "examples" folder.

### Caching Data

[](#caching-data)

If you are doing lots of GET requests, you may want to use a cache. The Cache Class in combination with the FileCacheAdapter lets you cache Webling API requests on the filesystem. It does check which objects have changed and only fetches the changed objects.

This is how you use the Cache:

```
// create a cache object
$client = new Webling\API\Client('https://demo.webling.ch','MY_APIKEY');
$adapter = new Webling\CacheAdapters\FileCacheAdapter([
    'directory' => './webling_cache'
]);
$cache = new Webling\Cache\Cache($client, $adapter);

// get single object
$member = $cache->getObject('member', 506);

// get binary data of object
$cache->getObjectBinary('member', 506, $member['properties']['Mitgliederbild']['href']);

// get multiple objects
$cache->getObjects('member', [506, 507, 508]);

// get object lists
$cache->getRoot('membergroup');

// check for updates and renew cache
$cache->updateCache();

// clear the whole cache
$cache->clearCache();
```

Requirements
------------

[](#requirements)

To use this library you need at least:

- PHP &gt;=5.6
- PHP cURL Extension
- PHP JSON Extension
- A [Webling](https://www.webling.ch) Account with API enabled

API Documentation
-----------------

[](#api-documentation)

You can find the Full Documentation of the Webling REST-API at [demo.webling.ch/api](https://demo.webling.ch/api)

Changelog
---------

[](#changelog)

##### v1.3.1

[](#v131)

- Fixed a bug that prevented response caching from working properly

##### v1.3.0

[](#v130)

Support for binary files caching has been added.

- The interface `ICache` now has a new function `getObjectBinary()`.
- The `FileCacheAdapter` and `IFileCacheAdapter` has been updated to support the new functions.
- Starting this release, only PHP &gt;= 5.6 is tested and supported

##### v1.2.0

[](#v120)

The `Webling\Cache\FileCache` has been marked as deprecated and will be removed in the future. Use the more generic `Webling\Cache\Cache` with the `Webling\CacheAdapters\FileCacheAdapter` instead.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 96.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~404 days

Recently: every ~571 days

Total

8

Last Release

629d ago

PHP version history (2 changes)1.0PHP &gt;=5.4.0

1.3.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ced40419bc827cf84b18b71546912e34ac6ac3a0a9f55f9d8cfb9f4218c8558?d=identicon)[demianh](/maintainers/demianh)

---

Top Contributors

[![demianh](https://avatars.githubusercontent.com/u/3471756?v=4)](https://github.com/demianh "demianh (89 commits)")[![AScheuss](https://avatars.githubusercontent.com/u/5180192?v=4)](https://github.com/AScheuss "AScheuss (1 commits)")[![cyrillbolliger](https://avatars.githubusercontent.com/u/12530490?v=4)](https://github.com/cyrillbolliger "cyrillbolliger (1 commits)")[![gamperl](https://avatars.githubusercontent.com/u/5635734?v=4)](https://github.com/gamperl "gamperl (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/usystems-webling-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/usystems-webling-api-php/health.svg)](https://phpackages.com/packages/usystems-webling-api-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
