{"id":36980830,"url":"https://github.com/eminisolomon/safehaven","last_synced_at":"2026-01-13T22:50:36.556Z","repository":{"id":248577310,"uuid":"829157827","full_name":"eminisolomon/safehaven","owner":"eminisolomon","description":"A streamlined Laravel package facilitating seamless integration with Safe Haven MFB's API, providing efficient access to essential banking services.","archived":false,"fork":false,"pushed_at":"2025-12-06T10:13:38.000Z","size":282,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-10T03:51:23.195Z","etag":null,"topics":["bank","mfb","nigeria","safehaven"],"latest_commit_sha":null,"homepage":"https://safehaven-mfb.vercel.app","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eminisolomon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-15T21:58:36.000Z","updated_at":"2025-12-06T10:13:41.000Z","dependencies_parsed_at":"2024-07-15T22:32:24.721Z","dependency_job_id":"56ad23b3-5c28-45c3-b265-c33f44b684e9","html_url":"https://github.com/eminisolomon/safehaven","commit_stats":null,"previous_names":["eminisolomon/safehaven"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/eminisolomon/safehaven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminisolomon%2Fsafehaven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminisolomon%2Fsafehaven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminisolomon%2Fsafehaven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminisolomon%2Fsafehaven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eminisolomon","download_url":"https://codeload.github.com/eminisolomon/safehaven/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminisolomon%2Fsafehaven/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bank","mfb","nigeria","safehaven"],"created_at":"2026-01-13T22:50:35.792Z","updated_at":"2026-01-13T22:50:36.550Z","avatar_url":"https://github.com/eminisolomon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safe Haven MFB Laravel package\n\n[![Latest Version](https://img.shields.io/github/release/eminisolomon/safehaven.svg?style=flat-square)](https://github.com/eminisolomon/safehaven/releases)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/eminisolomon/safehaven.svg?style=flat-square)](https://packagist.org/packages/eminisolomon/safehaven)\n[![Total Downloads](https://img.shields.io/packagist/dt/eminisolomon/safehaven.svg?style=flat-square)](https://packagist.org/packages/eminisolomon/safehaven)\n\nSafe Haven MFB for your Laravel project made easy\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require eminisolomon/safehaven\n```\n\nPublishing the config file\n\n```bash\nphp artisan vendor:publish --provider=\"Eminisolomon\\SafeHaven\\SafeHavenServiceProvider\" --tag=\"config\"\n```\n\n## Usage\n\n```php\n\nuse Eminisolomon\\SafeHaven\\SafeHaven;\n\n//Create Account\n$accountType = \"Savings\";\n$accountName = \"Solomon Olatunji\";\nSafeHaven::account()-\u003ecreateAccount($accountType, $accountName, [\n    \"verified\" =\u003e true,\n    \"notes\" =\u003e \"\"\n]);\n\n```\n\nFor more information, please refer to the [package documentation](docs/index.md).\n\n## Automatic API Token Refresh\n\nFor 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\n\n**Step 1**: Import `ApiRequestor` from `Eminisolomon\\SafeHaven`.\n\n```php\nuse Eminisolomon\\SafeHaven\\ApiRequestor;\n```\n\n**Step 2**: Update `schedule` in `app/Console/Kernel.php` to refresh the token every 30 minutes.\n\n```php\nprotected function schedule(Schedule $schedule)\n{\n    $schedule-\u003ecall(function () {\n        (new ApiRequestor())-\u003etoken();\n    })-\u003eeveryThirtyMinutes();\n}\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security-related issues, please email realsolomon@outlook.com instead of using the issue tracker.\n\n## Credits\n\n- [Solomon Olatunji](https://github.com/eminisolomon)\n- [All Contributors](CONTRIBUTORS.md)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feminisolomon%2Fsafehaven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feminisolomon%2Fsafehaven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feminisolomon%2Fsafehaven/lists"}