{"id":37015141,"url":"https://github.com/digikraaft/flutterwave-php","last_synced_at":"2026-01-14T01:30:56.044Z","repository":{"id":56968630,"uuid":"277795497","full_name":"digikraaft/flutterwave-php","owner":"digikraaft","description":"Conveniently interact with the Flutterwave API with ease using PHP","archived":false,"fork":false,"pushed_at":"2021-09-14T07:04:54.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T05:27:15.826Z","etag":null,"topics":["digikraaft","flutterwave","flutterwave-php","payment","payment-gateway","payment-integration","php"],"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/digikraaft.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}},"created_at":"2020-07-07T11:16:12.000Z","updated_at":"2021-09-14T06:53:54.000Z","dependencies_parsed_at":"2022-08-21T06:40:26.308Z","dependency_job_id":null,"html_url":"https://github.com/digikraaft/flutterwave-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/digikraaft/flutterwave-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digikraaft%2Fflutterwave-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digikraaft%2Fflutterwave-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digikraaft%2Fflutterwave-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digikraaft%2Fflutterwave-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digikraaft","download_url":"https://codeload.github.com/digikraaft/flutterwave-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digikraaft%2Fflutterwave-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["digikraaft","flutterwave","flutterwave-php","payment","payment-gateway","payment-integration","php"],"created_at":"2026-01-14T01:30:55.485Z","updated_at":"2026-01-14T01:30:56.021Z","avatar_url":"https://github.com/digikraaft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Conveniently interact with the Flutterwave API with ease!\n![run-tests](https://github.com/digikraaft/flutterwave-php/workflows/run-tests/badge.svg)\n[![Build Status](https://travis-ci.com/digikraaft/flutterwave-php.svg?token=6YhB5FxJsF7ENdMM7Mzz\u0026branch=master)](https://travis-ci.com/digikraaft/flutterwave-php)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/digikraaft/flutterwave-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/digikraaft/flutterwave-php/?branch=master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/digikraaft/flutterwave-php/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\nThis package provides an expressive and convenient way to interact with the [Flutterwave API](https://developer.flutterwave.com/reference).\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require digikraaft/flutterwave-php\n```\n\n## Usage\n\nAll APIs documented in Flutterwave's [Developer Reference](https://developer.flutterwave.com/reference) \nare currently supported by this package.\nUsing the individual API follows a general convention so that it can be simple and predictable.\n\n```\n\u003c?php \n\n{API_NAME}::{API_END_POINT}();\n\n```\nBefore this, the API key needs to be set. For example, to access the `payment-plans` endpoint,\n```\n\u003c?php \n\ninclude_once('vendor/autoload.php');\n\nuse Digikraaft\\Flutterwave\\Flutterwave;\nuse Digikraaft\\Flutterwave\\PaymentPlan;\n\nFlutterwave::setApiKey('FLWSECK_TEST_1234abcd');\n$plans = PaymentPlan::list();\n\n```\nYou can easily pass parameters to be sent as arguments to the `API_END_POINT` method like this:\n```\n\u003c?php\n\ninclude_once('vendor/autoload.php');\n\nuse Digikraaft\\Flutterwave\\Flutterwave;\nuse Digikraaft\\Flutterwave\\PaymentPlan;\n\nFlutterwave::setApiKey('FLWSECK_TEST_1234abcd');\n\n$params = [\n    'from' =\u003e '2020-07-07',\n    'to' =\u003e '2020-07-07',\n    'currency' =\u003e 'NGN',\n];\n\n$plans = PaymentPlan::list($params);\n\n```\nThis also applies to `POST` and `PUT` requests.\n\nFor endpoints that require path parameters like the `fetch customer` with the request like `/payment-plans/{id}`,\nsimply pass in a string into the `API_END_POINT` like this:\n\n```\n\u003c?php\n\ninclude_once('vendor/autoload.php');\n\nuse Digikraaft\\Flutterwave\\Flutterwave;\nuse Digikraaft\\Flutterwave\\PaymentPlan;\n\nFlutterwave::setApiKey('FLWSECK_TEST_1234abcd');\n$plan = PaymentPlan::fetch('12345678');\n\n```\n\nFor `API_END_POINT`s that take both path and body parameters like the `update payment-plan` with the `PUT` request `payment-plans/{id}`,\nsimply pass in a string as the first argument, an array as the second like this:\n\n```\n\u003c?php\ninclude_once('vendor/autoload.php');\n\nuse Digikraaft\\Flutterwave\\Flutterwave;\nuse Digikraaft\\Flutterwave\\PaymentPlan;\n\nFlutterwave::setApiKey('FLWSECK_TEST_1234abcd');\n\n$params = [\n    'name' =\u003e 'Gym Membership',\n    'status' =\u003e 'active',\n];\n\n$plan = PaymentPlan::update('12345678', $params);\n\n```\n\nThere are a few exceptions to the `API_END_POINT` convention.\n\nCheck the wiki page [here](../../wiki) for detailed reference of the available methods\n\n\u003cbr\u003e\u003cbr\u003e\nThis package returns the exact response from the Flutterwave API but as the `stdClass` type \nsuch that responses can be accessed like this:\n\n```\n\u003c?php\n\ninclude_once('vendor/autoload.php');\n\nuse Digikraaft\\Flutterwave\\Flutterwave;\nuse Digikraaft\\Flutterwave\\PaymentPlan;\n\nFlutterwave::setApiKey('FLWSECK_TEST_1234abcd');\n$plan = PaymentPlan::fetch('12345678');\n\nif ($plan-\u003estatus == 'success') {\n    echo $plan-\u003edata-\u003ename;\n}\n\n```\nFuture updates will see to improving on how the response object is handled.\n\n## Documentation\nFor detailed documentation, check the wiki page [here](../../wiki)\n\n## Todo\n* More tests\n* Better API response handling\n\n## Testing\n\n``` bash\ncomposer test\n```\n## More Good Stuff\nCheck [here](https://github.com/digikraaft) for more awesome free stuff!\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nContributions are welcome! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email dev@digitalkraaft.com instead of using the issue tracker.\n\n## Credits\n\n- [Tim Oladoyinbo](https://github.com/timoladoyinbo)\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%2Fdigikraaft%2Fflutterwave-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigikraaft%2Fflutterwave-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigikraaft%2Fflutterwave-php/lists"}