maylancerdev/safehaven-laravel
Composer 安装命令:
composer require maylancerdev/safehaven-laravel
包简介
A concise Laravel package for easy integration with Safe Haven MFB's API, offering simplified access to banking features
README 文档
README
Safe Haven MFB for your Laravel project made easy
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
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.
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
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email hello@maylancer.org instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
maylancerdev/safehaven-laravel 适用场景与选型建议
maylancerdev/safehaven-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 01 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「maylancer」 「safehaven」 「Nigeria Bank」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 maylancerdev/safehaven-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 maylancerdev/safehaven-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 maylancerdev/safehaven-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
RawPHP is currently the most powerful framework in the world because of its ability to combine only the good parts of raw PHP, Laravel, CakePHP and Slim frameworks. It is PHP framework that helps you quickly write simple yet powerful web applications and APIs. You can write both laravel, Slim and ca
A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities.
A concise Laravel package for easy integration with Safe Haven MFB's API, offering simplified access to banking features
A laravel package to seamlessly integrate VTU.ng API into your laravel application. The VTU.ng API is an HTTPs GET API that allows you to integrate all virtual top-up and bills payment services available on our platform with your application (websites, desktop apps & mobile apps). You can also start
Unofficial Motor Vehicle Registration Information Search Portal Library
A laravel package to seamlessly integrate MegaSup API into your laravel application. The MegaSup API is an HTTPs GET API that allows you to integrate all virtual top-up and bills payment services available on our platform with your application (websites, desktop apps & mobile apps). You can also sta
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-20