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)3196MITPHPPHP ^8.2

Since Jul 15Pushed 5mo 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 1mo 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

38

—

LowBetter than 85% of packages

Maintenance62

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~46 days

Recently: every ~69 days

Total

7

Last Release

384d 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://www.gravatar.com/avatar/15cf3892be2ff0c49ba27e564f492bb2f5cc34b5ca01887f4ce004408d01d4ff?d=identicon)[eminisolomon](/maintainers/eminisolomon)

---

Top Contributors

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

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M111](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[docusign/esign-client

The Docusign PHP library makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-esign-php-client repository. Join the eSign revolution!

2087.4M13](/packages/docusign-esign-client)[vemcogroup/laravel-weather

Weather package for Laravel to use different providers to get weather info

5525.0k](/packages/vemcogroup-laravel-weather)[agence104/livekit-server-sdk

Server-side SDK for LiveKit.

79189.9k1](/packages/agence104-livekit-server-sdk)

PHPackages © 2026

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