PHPackages                             terminal42/webling-api - 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. terminal42/webling-api

ActiveLibrary[API Development](/categories/api)

terminal42/webling-api
======================

API client for webling.ch

1.0.0(6y ago)681821LGPL-3.0+PHPPHP ^7.1CI failing

Since Oct 29Pushed 1y ago7 watchersCompare

[ Source](https://github.com/terminal42/webling-api)[ Packagist](https://packagist.org/packages/terminal42/webling-api)[ GitHub Sponsors](https://github.com/terminal42)[ Fund](https://ko-fi.com/terminal42)[ RSS](/packages/terminal42-webling-api/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (10)Versions (2)Used By (1)

terminal42/webling-api
======================

[](#terminal42webling-api)

An API client for the REST API of webling.ch.

This client is currently used for our own projects and might not support all cases. Feel free to open issues or pull requests for questions or feature requests.

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

[](#installation)

```
$ composer.phar require terminal42/webling-api ^2.0@dev
```

If you are using Symfony, we recommend using our [Webling Bundle](https://github.com/terminal42/webling-bundle).

Usage
-----

[](#usage)

```
$subdomain  = 'meinverein';
$apiKey     = 'foobar';
$apiVersion = '1';

$client = new Client($subdomain, $apiKey, $apiVersion);

// Example call for member list:
$client->get('member');
```

The EntityManager
-----------------

[](#the-entitymanager)

If you're looking for a more convenient way to work with the API instead of calling it directly, you can work with the `EntityManager`.

The main issue with the webling API is the fact that requesting resource lists (e.g. `/member`) will only return an array of object ID's instead of additional data like the member last name or first name.

The `EntityList` will take care of this and lazy load the additional details whenever you need them. That way you can easily iterate over a list of members:

```
$em = EntityManager::createForAccount($subdomain, $apiKey);

$entityList = $em->findAll('member');

foreach ($entityList as $member) {

    echo $member->getId();
    echo $member->getProperty('Name');
    var_dump($member->getProperties());
    // etc.
}
```

The QueryBuilder
----------------

[](#the-querybuilder)

The QueryBuilder components allows to find entities using complex search queries. It is highly recommended to use an IDE with code autocompletion for easy usage.

### Example 1: find member by name

[](#example-1-find-member-by-name)

```
$qb = new QueryBuilder();
$query = $qb->where('Firstname')->isEqualTo('Max')->andWhere('Lastname')->isEqualTo('Muster')->build();
```

> Result: `Firstname = "Max" AND Lastname = "Muster"`

### Example 2: find member by complex conditions

[](#example-2-find-member-by-complex-conditions)

```
$qb = new QueryBuilder();

$query = $qb
    ->group(
        $qb->where('Firstname')->isEqualTo('Max')->andWhere('Lastname')->isEqualTo('Muster')
    )
    ->orGroup(
        $qb->where('Firstname')->isEqualTo('Muster')->andWhere('Lastname')->isEqualTo('Max')
    )
    ->build()
;
```

> Result: '(Firstname = "Max" AND Lastname = "Muster") OR (Lastname = "Max" AND "Firstname" = "Muster")'

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.1% 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

Unknown

Total

1

Last Release

2460d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1073273?v=4)[Andreas Schempp](/maintainers/aschempp)[@aschempp](https://github.com/aschempp)

![](https://avatars.githubusercontent.com/u/481937?v=4)[Yanick Witschi](/maintainers/Toflar)[@Toflar](https://github.com/Toflar)

---

Top Contributors

[![aschempp](https://avatars.githubusercontent.com/u/1073273?v=4)](https://github.com/aschempp "aschempp (94 commits)")[![qzminski](https://avatars.githubusercontent.com/u/193483?v=4)](https://github.com/qzminski "qzminski (4 commits)")[![Toflar](https://avatars.githubusercontent.com/u/481937?v=4)](https://github.com/Toflar "Toflar (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M754](/packages/sylius-sylius)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k543.5M2.7k](/packages/aws-aws-sdk-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

36789.4k2](/packages/telnyx-telnyx-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[brd6/notion-sdk-php

Notion SDK for PHP

6123.0k](/packages/brd6-notion-sdk-php)[razorpay/ifsc

Razorpay IFSC Codes Library

385205.4k](/packages/razorpay-ifsc)

PHPackages © 2026

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