PHPackages                             eminisolomon/safehaven - 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. eminisolomon/safehaven

ActiveLibrary[API Development](/categories/api)

eminisolomon/safehaven
======================

A concise Laravel package for easy integration with Safe Haven MFB's API, offering simplified access to banking features

v2.0.3(1y ago)4197MITPHPPHP ^8.2

Since Jul 15Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/eminisolomon/safehaven)[ Packagist](https://packagist.org/packages/eminisolomon/safehaven)[ Docs](https://github.com/eminisolomon/safehaven)[ RSS](/packages/eminisolomon-safehaven/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (4)Versions (8)Used By (0)

Safe Haven MFB Laravel package
==============================

[](#safe-haven-mfb-laravel-package)

[![Latest Version](https://camo.githubusercontent.com/7173e0fce8d7e3d2fb072bb72d52b40f56b3a92e3b331bfd1983c66d1f9ca95d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f656d696e69736f6c6f6d6f6e2f73616665686176656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/eminisolomon/safehaven/releases)[![Latest Version on Packagist](https://camo.githubusercontent.com/cdaa41d33e3729fdc551c524aedd2de1f252b175fd541db15764415bede71fee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d696e69736f6c6f6d6f6e2f73616665686176656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eminisolomon/safehaven)[![Total Downloads](https://camo.githubusercontent.com/a399e705aa80789dc29e4a3b99b9d3d0a02aebd49c7b9b503fd41316b731fbee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656d696e69736f6c6f6d6f6e2f73616665686176656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eminisolomon/safehaven)

Safe Haven MFB for your Laravel project made easy

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

[](#installation)

You can install the package via composer:

```
composer require eminisolomon/safehaven
```

Publishing the config file

```
php artisan vendor:publish --provider="Eminisolomon\SafeHaven\SafeHavenServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

```
use Eminisolomon\SafeHaven\SafeHaven;

//Create Account
$accountType = "Savings";
$accountName = "Solomon Olatunji";
SafeHaven::account()->createAccount($accountType, $accountName, [
    "verified" => true,
    "notes" => ""
]);
```

For more information, please refer to the [package documentation](docs/index.md).

Automatic API Token Refresh
---------------------------

[](#automatic-api-token-refresh)

For seamless and uninterrupted access to API endpoints, it's recommended to integrate an automated mechanism in your Laravel application. This mechanism will be responsible for generating client assertions and subsequently exchanging them for API tokens. By doing so, the API token gets refreshed automatically before it reaches its expiration, ensuring your API interactions remain consistent and uninterrupted. To implement this, simply add the provided script to your Laravel application's cron job configuration

**Step 1**: Import `ApiRequestor` from `Eminisolomon\SafeHaven`.

```
use Eminisolomon\SafeHaven\ApiRequestor;
```

**Step 2**: Update `schedule` in `app/Console/Kernel.php` to refresh the token every 30 minutes.

```
protected function schedule(Schedule $schedule)
{
    $schedule->call(function () {
        (new ApiRequestor())->token();
    })->everyThirtyMinutes();
}
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Solomon Olatunji](https://github.com/eminisolomon)
- [All Contributors](CONTRIBUTORS.md)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance52

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~46 days

Recently: every ~69 days

Total

7

Last Release

484d ago

Major Versions

v1.0.2 → v2.0.02024-08-30

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.3PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/98302780?v=4)[Solomon Olatunji](/maintainers/eminisolomon)[@eminisolomon](https://github.com/eminisolomon)

---

Top Contributors

[![eminisolomon](https://avatars.githubusercontent.com/u/98302780?v=4)](https://github.com/eminisolomon "eminisolomon (11 commits)")[![solomonolatunji](https://avatars.githubusercontent.com/u/98302780?v=4)](https://github.com/solomonolatunji "solomonolatunji (11 commits)")

---

Tags

bankmfbnigeriasafehavensafehavenNigeria BankeminisolomonVas Services

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/eminisolomon-safehaven/health.svg)

```
[![Health](https://phpackages.com/badges/eminisolomon-safehaven/health.svg)](https://phpackages.com/packages/eminisolomon-safehaven)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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