PHPackages                             millermedia/brink-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. millermedia/brink-php

ActiveLibrary[API Development](/categories/api)

millermedia/brink-php
=====================

A PHP wrapper to the Brink API

1.0.2(8y ago)016PHP

Since Oct 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Miller-Media/brink-php)[ Packagist](https://packagist.org/packages/millermedia/brink-php)[ RSS](/packages/millermedia-brink-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

[![](https://camo.githubusercontent.com/cdd45a65050c4b4cb1ab585e2ba667a7f98fe699a2fc1c3e9dbb4241e5ca7c8d/687474703a2f2f6a6f696e6272696e6b2e636f6d2f6173736574732f696d616765732f7265706f2f4272696e6b2e706e67)](https://camo.githubusercontent.com/cdd45a65050c4b4cb1ab585e2ba667a7f98fe699a2fc1c3e9dbb4241e5ca7c8d/687474703a2f2f6a6f696e6272696e6b2e636f6d2f6173736574732f696d616765732f7265706f2f4272696e6b2e706e67)[![](https://camo.githubusercontent.com/c76477da869166fcf260036743e1efa2f93c7ac2340e2e1d2a68880fcedd5a2e/687474703a2f2f6a6f696e6272696e6b2e636f6d2f6173736574732f696d616765732f7265706f2f5048502d6c6f676f2e706e67)](https://camo.githubusercontent.com/c76477da869166fcf260036743e1efa2f93c7ac2340e2e1d2a68880fcedd5a2e/687474703a2f2f6a6f696e6272696e6b2e636f6d2f6173736574732f696d616765732f7265706f2f5048502d6c6f676f2e706e67)

Install the PHP Package
-----------------------

[](#install-the-php-package)

```
    $ composer require millermedia/brink-php

```

Using the API
-------------

[](#using-the-api)

1. Login to the api to receive a jwt token that can be used in future requests without the need to reauthenticate

```
	include("vendor/autoload.php");
	$brink_api = new \MillerMedia\Brink\Brink_API();

	// Login to the api via username and password
	$user_data = array(
		"username" => 'username',
		"password" => 'password'
	);
	$response = $brink_api->login($user_data);

	if (isset($response->error)) {
		// Login Error
		echo $response->error;
		exit;
	}
	$access_token = $response->jwt_token;

	// After logging in using the $brink_api->login() method, the token is already set
	// so additional requests can be handled correctly
	$flights = $brink_api->get_all_flights();
```

2. If you already have a jwt token prepared, you can use it when creating the api instance and bypass logging in.

```
	include("Brink_API.php");
	$brink_api = new Brink_API();

	$token='eyJ0eXAiOiJKV1QiLCJhbGc...';
	$brink_api->access_token = $token;

	// Get all flights
	$flights = $brink_api->get_all_flights();

	// Get details for a specific flights
	$params = array('flight_id' => 12);
	$flight = $brink_api->get_flight($params);

	// Get data points for a specific flight
	$params = array('flight_id'=>15, 'prop' => array('page'=>1, 'per_page'=>5));
	$flight_data = $brink_api->get_flight_data($params);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 69.2% 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 ~0 days

Total

2

Last Release

3191d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22799666?v=4)[Kevin Carwile](/maintainers/kcarwilemiller)[@kcarwilemiller](https://github.com/kcarwilemiller)

![](https://avatars.githubusercontent.com/u/30533836?v=4)[mm-max](/maintainers/mm-max)[@mm-max](https://github.com/mm-max)

---

Top Contributors

[![mm-max](https://avatars.githubusercontent.com/u/30533836?v=4)](https://github.com/mm-max "mm-max (18 commits)")[![mattmillerai](https://avatars.githubusercontent.com/u/7741082?v=4)](https://github.com/mattmillerai "mattmillerai (4 commits)")[![MillerMedia](https://avatars.githubusercontent.com/u/7741082?v=4)](https://github.com/MillerMedia "MillerMedia (4 commits)")

### Embed Badge

![Health badge](/badges/millermedia-brink-php/health.svg)

```
[![Health](https://phpackages.com/badges/millermedia-brink-php/health.svg)](https://phpackages.com/packages/millermedia-brink-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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