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(5y ago)0440↑186.7%MITPHP

Since May 28Pushed 5y 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 2d 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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

1863d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34532837?v=4)[bcconsulting](/maintainers/bcconsulting)[@bcconsulting](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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