PHPackages                             metmax-io/cbr-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. metmax-io/cbr-api-php

ActiveLibrary[API Development](/categories/api)

metmax-io/cbr-api-php
=====================

CBR Top WSAPI client wrapper

133[2 PRs](https://github.com/MetMax-io/cbr-api-php/pulls)PHP

Since Jul 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MetMax-io/cbr-api-php)[ Packagist](https://packagist.org/packages/metmax-io/cbr-api-php)[ RSS](/packages/metmax-io-cbr-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

CBR Top WSAPI client wrapper
============================

[](#cbr-top-wsapi-client-wrapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b725c46ad99e0ad0859a9fc5e5560d558dc043878c8f377e954d5aa7f1b58d3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65746d61782d696f2f6362722d6170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/metmax-io/cbr-api-php)[![Tests](https://camo.githubusercontent.com/dfb17c71431b00e77cb07046f09626e3eec8794a6b62eaee2fd9cc820ca09942/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d65746d61782d696f2f6362722d6170692d7068702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/metmax-io/cbr-api-php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/c57ebf69d055c4f2dd3751fcdf10d58fe48f1ba10552de7d16680ff38b2a1923/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65746d61782d696f2f6362722d6170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/metmax-io/cbr-api-php)

A PHP wrapper for interacting with CBR Top Webservices API and supports the AuthenticationService, ReservationService, ReferenceDataService. This way you are able to handle the following operations:

- Submitting a new application or changing an existing application;
- Requesting open applications;
- Request previously purchased capacity via TOP;
- Reservation of requests at own capacity;
- Requesting the results;
- Request reference data such as the permitted products and locations, your registered instructors, your agreements with other trainers, and the available languages of the products;
- Changing the password;

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

[](#installation)

You can install the package via composer:

```
composer require metmax-io/cbr-api-php
```

Create the environment file

```
cp .env.dist .env
```

Usage
-----

[](#usage)

The API consists of 3 endpoints:

- Authentication
- ReferenceData
- Reservation

The API's are separated in different folders but can be used similarly.

### Get a list of physical CBR locations

[](#get-a-list-of-physical-cbr-locations)

```
use MetMax\Cbr\ReferenceData\ReferenceDataClientFactory;
use MetMax\Cbr\ReferenceData\Type\LocationsRequest;

$referenceData = ReferenceDataClientFactory::factory('username', 'password');
$locations = $referenceData->getLocations(new LocationsRequest());
```

Testing
-------

[](#testing)

The package [php-http/vcr-plugin](https://github.com/php-http/vcr-plugin) is being used to mock SOAP calls towards the CBR API. Responses will be stored inside the fixtures/vcr/ directory.

When a fixture isn't available, an actual HTTP call will be initiated, while the response will be stored as a fixture. If you want to update existing fixtures or creating new endpoints, make sure that the API credentials are configured within the .env file.

Run full testsuite

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Jeroen de Haar](https://github.com/metmax-io)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4208ea80119b64102d308487a4e6d303aebc965c73c7ec654d27500c551223f7?d=identicon)[roennie91](/maintainers/roennie91)

---

Top Contributors

[![roennie91](https://avatars.githubusercontent.com/u/2242502?v=4)](https://github.com/roennie91 "roennie91 (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

### Embed Badge

![Health badge](/badges/metmax-io-cbr-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/metmax-io-cbr-api-php/health.svg)](https://phpackages.com/packages/metmax-io-cbr-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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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