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 2d 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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

3145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d6406d3b2f011b9ba62ec06e01029510451ff09fb401a7bb8b545d8224476f4?d=identicon)[kcarwilemiller](/maintainers/kcarwilemiller)

![](https://www.gravatar.com/avatar/3e0b71d696bb314b8e40597544ff80fed52e545d01bcf3494e7050b39453033c?d=identicon)[mm-max](/maintainers/mm-max)

---

Top Contributors

[![mm-max](https://avatars.githubusercontent.com/u/30533836?v=4)](https://github.com/mm-max "mm-max (18 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

[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)
