PHPackages                             monbillet/api-client - 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. monbillet/api-client

ActiveLibrary

monbillet/api-client
====================

allows you to quickly and easily use the monbillet api

2.2.0(3mo ago)0153MITPHPPHP ^8.1

Since Mar 23Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/monbillet/api-client)[ Packagist](https://packagist.org/packages/monbillet/api-client)[ RSS](/packages/monbillet-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

*By [monbillet.ch](https://monbillet.ch/)*

Documentation
-------------

[](#documentation)

Please refer to our [documentation](https://monbillet.ch/api/v1/doc) for more information.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require monbillet/api-client
```

Usage
-----

[](#usage)

```
use Monbillet\ApiClient;

$token = ''; // your API key
$cache_path = ''; // path to a writable directory to store the cache
$cache_expire_minutes = 10;
$client = new ApiClient($token, $cache_path, $cache_expire_minutes);

$events = $client->getEvents();
$event_groups = $client->getEventGroups();

$event_id = ''; // the id or unique name of an event
$event = $client->getEvent($event_id);

$group_id = ''; // the id or unique name of a group
$event_group = $client->getEventGroup($group_id);
```

Options
-------

[](#options)

`getEvents` and `getEventGroups` have the following options:

- `withDetails` with value `true`

Running the example
-------------------

[](#running-the-example)

1. Write your API key in the **example/.env** file
2. Run `composer dump-autoload`
3. Run `composer run-script example`

Visit and test [localhost:9000](http://localhost:9000/)*Note: This web server is designed to aid application development. It should not be used on a public network.*

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~148 days

Recently: every ~63 days

Total

13

Last Release

94d ago

Major Versions

1.2.5 → 2.0.02026-01-21

PHP version history (3 changes)1.0.0PHP ^7.0||^8.0

1.0.1PHP ^7.1||^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e355cc5847dba9753761f089cca39bdfa884eee38bfcbd9ceb8e4db7806aeadf?d=identicon)[monbillet](/maintainers/monbillet)

---

Top Contributors

[![jborel](https://avatars.githubusercontent.com/u/36661196?v=4)](https://github.com/jborel "jborel (26 commits)")[![imagoiq](https://avatars.githubusercontent.com/u/12294151?v=4)](https://github.com/imagoiq "imagoiq (22 commits)")[![ddanielou](https://avatars.githubusercontent.com/u/1174337?v=4)](https://github.com/ddanielou "ddanielou (16 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/monbillet-api-client/health.svg)

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

PHPackages © 2026

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