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

ActiveLibrary[API Development](/categories/api)

maylancerdev/safehaven-laravel
==============================

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

v1.1.2(2mo ago)05MITPHPPHP ^8.2

Since Jan 22Pushed 2mo agoCompare

[ Source](https://github.com/maylancerdev/safehaven-laravel)[ Packagist](https://packagist.org/packages/maylancerdev/safehaven-laravel)[ Docs](https://github.com/maylancerdev/safehaven)[ RSS](/packages/maylancerdev-safehaven-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

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

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

[![Latest Version](https://camo.githubusercontent.com/fb4ced6ecadfe50c4fac91e417897be3f24ac36e15a379dcf049f6735e134c93/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d61796c616e6365726465762f73616665686176656e2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/maylancerdev/safehaven-laravel/releases)[![Latest Version on Packagist](https://camo.githubusercontent.com/da1d385189a5f64366b5f09c6f07e19aaea4e031b6c16fb960365d35d1278309/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61796c616e6365726465762f73616665686176656e2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maylancerdev/safehaven-laravel)[![Total Downloads](https://camo.githubusercontent.com/71b0ecd5d1a888ef30362854de4f691f2375de704169aa9859c13391223e5d31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61796c616e6365726465762f73616665686176656e2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maylancerdev/safehaven-laravel)

Safe Haven MFB for your Laravel project made easy

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

[](#installation)

You can install the package via composer:

```
composer require maylancer/safehaven-laravel
```

Publishing the config file

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

Usage
-----

[](#usage)

```
use MaylancerDev\SafeHaven\SafeHaven;

//Create Account
$accountType = "Savings";
$accountName = "John Timothy";
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 `MaylancerDev\SafeHaven`.

```
use MaylancerDev\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)

- [Olakunle](https://github.com/olakunlevpn)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

↑

FairBetter than 87% of packages

Maintenance85

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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 ~204 days

Total

5

Last Release

77d ago

Major Versions

0.1.0 → 1.0.02024-01-22

PHP version history (2 changes)0.1.0PHP ^8.1

v1.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20794807?v=4)[Olakunlevpn](/maintainers/olakunlevpn)[@olakunlevpn](https://github.com/olakunlevpn)

---

Top Contributors

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

---

Tags

maylancersafehavenNigeria Bank

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M874](/packages/laravel-socialite)

PHPackages © 2026

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