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

1.0.0(2y ago)05MITPHPPHP ^8.1

Since Jan 22Pushed 1y 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 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)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

24

—

LowBetter than 32% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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

Every ~0 days

Total

2

Last Release

846d ago

Major Versions

0.1.0 → 1.0.02024-01-22

### 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 (1 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

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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