PHPackages                             bc-automotive/master-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. [API Development](/categories/api)
4. /
5. bc-automotive/master-api-client

ActiveLibrary[API Development](/categories/api)

bc-automotive/master-api-client
===============================

bFlash Master Api Client

v1.0.0(4y ago)0145↓22.2%MITPHP

Since May 28Pushed 4y ago4 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (0)

Master API Client
=================

[](#master-api-client)

The bc-automotive/master-api-client package is a library that eases integration of the [bFlash Master API](https://www.bflash.eu) in your site.

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

[](#installation)

Install the package via composer:

```
composer require bc-automotive/master-api-client
```

Usage
-----

[](#usage)

The api uses authentication using a bearer token. Contact [bFlash support](support@bflash.eu) to request your authentication token.

### Encrypt a slave file:

[](#encrypt-a-slave-file)

```
use \BcAutomotive\MasterApiClient\MasterApiClient;

$client = new MasterApiClient($apiKey);

$data = file_get_contents('/path/to/data.bdc');
$encrypted = $client->encrypt($data, $slaveName);
file_put_contents('/path/to/data.sbdc', $encrypted['data']);
```

### Decrypt a slave file:

[](#decrypt-a-slave-file)

```
use \BcAutomotive\MasterApiClient\MasterApiClient;

$client = new MasterApiClient($apiKey);

$data = file_get_contents('/path/to/data.sbdc');
$decrypted = $client->decrypt($data);
file_put_contents('/path/to/data.sbdc', $decrypted['data']);
```

### Laravel Integration

[](#laravel-integration)

The package has a laravel service provider and facade to ease integration, so after including the package inside your laravel project, you can add the key to the `.env` file

```
MASTER_API_KEY=your_key_here

```

And use the facade:

```
use MasterApiClient;

$encrypted = MasterApiClient::encrypt($data, $slaveName);
$decrypted = MasterApiClient::decrypt($data);
```

### Exceptions

[](#exceptions)

The `MasterApiClient` class is a small wrapper around the `Guzzle` http client library, so this class can throw all regular `Guzzle` exceptions as well. You can file the [Guzzle docs here](https://docs.guzzlephp.org/en/stable/).

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

1816d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ea851563f0b647ea0a74efc7b9a3cbab12b02046c3d1661192bdd7b01c3dd1f?d=identicon)[bcconsulting](/maintainers/bcconsulting)

---

Top Contributors

[![mdebuf](https://avatars.githubusercontent.com/u/14371232?v=4)](https://github.com/mdebuf "mdebuf (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bc-automotive-master-api-client/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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