{"id":22185715,"url":"https://github.com/fintech-systems/api-helpers","last_synced_at":"2026-01-28T13:01:56.944Z","repository":{"id":62504846,"uuid":"417384294","full_name":"fintech-systems/api-helpers","owner":"fintech-systems","description":"Abstraction of generic API calls that are used across multiple possibly dissimilar applications.","archived":false,"fork":false,"pushed_at":"2024-11-18T08:28:28.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T22:26:01.447Z","etag":null,"topics":["php-api"],"latest_commit_sha":null,"homepage":"","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/fintech-systems.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"fintech-systems"}},"created_at":"2021-10-15T05:58:03.000Z","updated_at":"2024-11-18T08:28:32.000Z","dependencies_parsed_at":"2025-07-26T19:32:03.693Z","dependency_job_id":"31ebbb41-05c4-42b3-8023-12006d5434a3","html_url":"https://github.com/fintech-systems/api-helpers","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"fintech-systems/package-skeleton-laravel","purl":"pkg:github/fintech-systems/api-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintech-systems%2Fapi-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintech-systems%2Fapi-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintech-systems%2Fapi-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintech-systems%2Fapi-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fintech-systems","download_url":"https://codeload.github.com/fintech-systems/api-helpers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fintech-systems%2Fapi-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T12:37:07.070Z","status":"ssl_error","status_checked_at":"2026-01-28T12:37:06.657Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["php-api"],"created_at":"2024-12-02T10:16:57.255Z","updated_at":"2026-01-28T13:01:56.927Z","avatar_url":"https://github.com/fintech-systems.png","language":"PHP","funding_links":["https://github.com/sponsors/fintech-systems"],"categories":[],"sub_categories":[],"readme":"# Laravel API Helpers\n\n[![Latest Stable Version](https://poser.pugx.org/fintech-systems/laravel-api-helpers/v/stable?format=flat-square)](https://packagist.org/packages/fintech-systems/laravel-api-helpers)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/fintech-systems/laravel-api-helpers/run-tests?label=tests)](https://github.com/fintech-systems/laravel-api-helpers/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/fintech-systems/laravel-api-helpers/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/fintech-systems/laravel-api-helpers/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/fintech-systems/laravel-api-helpers.svg?style=flat-square)](https://packagist.org/packages/fintech-systems/laravel-api-helpers)\n[![GitHub license](https://img.shields.io/github/license/fintech-systems/laravel-api-helpers)](https://github.com/fintech-systems/laravel-api-helpers/blob/main/LICENSE.md)\n\n---\n## A helper library to facilitate working with APIs\n\n### API: Get, Post, Delete\n\n`public function get(string $url, array $header = [])`\n\n`public function post(string $url, string|array $postFields, array $header = [])`\n\n`public function delete(string $url, string|array $postFields = '', array $header = [])`\n\nLaravel API Helper Command - facilitates caching JSON API responses\n\nExample:\n\n```php\nclass UserCommand extends LaravelApiHelpersCommand\n{\n    /**\n     * The name and signature of the console command.\n     *\n     * @var string\n     */\n    protected $signature = 'api:get-users {--cached}';\n\n    ...\n\n    /**\n     * Execute the console command.\n     *\n     * @return int\n     */\n    public function handle()\n    {\n        if ($file = $this-\u003echeckCachedFileExists()) {\n            $this-\u003einfo('A cached API result file was returned');\n\n            return $file;\n        }\n\n        $result = file_put_contents($this-\u003ecachedFile, Api::getUsers());\n        $this-\u003einfo('The API command was successful');\n\n        return $result;\n    }\n```\n\n---\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require fintech-systems/laravel-api-helpers\n```\n## Usage\n\n### WhatsApp to WHMCS phone number conversion\n\n```php\n$api = new Api();\n$result = $api-\u003econvertWhatsAppNumberToWhmcsPhoneNumber('27823096710');\nexpect($result)-\u003etoEqual('+27.82 309 6710');\n\n$api = new Api();\n$result = $api-\u003econvertWhatsAppNumberToWhmcsPhoneNumber('14085551234');\nexpect($result)-\u003etoEqual('+1.408-555-1234');\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Eugene van der Merwe](https://github.com/fintech-systems)\n- [All Contributors](../../contributors)\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%2Ffintech-systems%2Fapi-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffintech-systems%2Fapi-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffintech-systems%2Fapi-helpers/lists"}