PHPackages                             chedilas/safehaven\_mfb - 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. chedilas/safehaven\_mfb

ActiveLibrary

chedilas/safehaven\_mfb
=======================

A simple integration of a safehaven packages

00PHP

Since Jan 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dilas1234/safehaven)[ Packagist](https://packagist.org/packages/chedilas/safehaven_mfb)[ RSS](/packages/chedilas-safehaven-mfb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

Safe Haven MFB for your Laravel project made easy

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

[](#installation)

You can install the package via composer:

```
composer require chedilas/safehaven_mfb
```

Publishing the config file

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

Usage
-----

[](#usage)

```
use CheDilas\SafeHaven\SafeHaven;

//Create Account
$accountType = "Savings";
$accountName = "Che Dilas Yusuph";
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 `CheDilas\SafeHaven`.

```
use CheDilas\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.

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2833afd3287f15125dea84fc43f61cc415d36f8b8b48a9c1eebece38ca8a038e?d=identicon)[dilas1234](/maintainers/dilas1234)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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