{"id":19870299,"url":"https://github.com/alphaolomi/laravel-shoket","last_synced_at":"2025-05-02T08:31:42.839Z","repository":{"id":40524585,"uuid":"458458852","full_name":"alphaolomi/laravel-shoket","owner":"alphaolomi","description":"Shoket Laravel integration","archived":false,"fork":false,"pushed_at":"2023-10-09T17:10:26.000Z","size":60,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T00:14:27.440Z","etag":null,"topics":["laravel","package","php","shoket"],"latest_commit_sha":null,"homepage":"https://alphaolomi.github.io/laravel-shoket","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/alphaolomi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null},"funding":{"patreon":"alphaolomi"}},"created_at":"2022-02-12T08:02:27.000Z","updated_at":"2023-11-19T15:41:05.000Z","dependencies_parsed_at":"2023-02-16T09:35:24.247Z","dependency_job_id":null,"html_url":"https://github.com/alphaolomi/laravel-shoket","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Flaravel-shoket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Flaravel-shoket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Flaravel-shoket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Flaravel-shoket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphaolomi","download_url":"https://codeload.github.com/alphaolomi/laravel-shoket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252008844,"owners_count":21679648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["laravel","package","php","shoket"],"created_at":"2024-11-12T16:08:33.206Z","updated_at":"2025-05-02T08:31:42.559Z","avatar_url":"https://github.com/alphaolomi.png","language":"PHP","funding_links":["https://patreon.com/alphaolomi"],"categories":[],"sub_categories":[],"readme":"# Laravel Shoket Integration\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/shoket/laravel-shoket.svg?style=flat-square)](https://packagist.org/packages/shoket/laravel-shoket)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/alphaolomi/laravel-shoket/run-tests?label=tests)](https://github.com/alphaolomi/laravel-shoket/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/alphaolomi/laravel-shoket/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/shoket/laravel-shoket/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/shoket/laravel-shoket.svg?style=flat-square)](https://packagist.org/packages/shoket/laravel-shoket)\n\nA simple integration of Shoket's Payments API into your Laravel application.\n\nFrom Shokets website\n\n\"Truly simple payments for your business.\nShoket makes online payments more easier for all kind of business in Tanzania. From startups, small businesses to medium and large businesses.\"\n\n## Installation\n\u003e Requiremnts PHP 8.0+ and Laravel 8+\n\nYou can install the package via composer:\n\n```bash\ncomposer require shoket/laravel-shoket\n```\n\n\u003c!-- You can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-shoket-migrations\"\nphp artisan migrate\n``` --\u003e\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"shoket-config\"\n```\n\n\n- Update the env adding the `SHOKET_API_SECRET`\n\n\u003c!-- This is the contents of the published config file:\n\n```php\nreturn [\n    // ...\n];\n``` --\u003e\n\n## Usage\n\nYou can use the `Shoket::makePaymentRequest([...])` method to accept payments.\n### Simple and direct\n```php\nuse Shoket\\Laravel\\Facades\\Shoket;\n\n$chargeResponse = Shoket::makePaymentRequest([\n    \"amount\" =\u003e \"200\",\n    \"customer_name\" =\u003e \"John Doe\",\n    \"email\" =\u003e  \"john@user.com\",\n    \"number_used\" =\u003e \"255612345678\",\n    \"channel\" =\u003e  \"Tigo\"\n]);\n\n// OR\n$referenceId = \"abcd124\";\n$chargeResponse = Shoket::verifyPaymentRequest($referenceId, [\n    \"provider_name\" =\u003e \"Vodacom\",\n    \"provider_code\" =\u003e \"MPESA\"\n]);\n// ...\n```\n\n## Avaibale Commands\n\nThe package is bundled with 2 commands\n\n- AcceptPayment [WIP]\n- VerifyPayment [WIP]\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-   [Alpha Olomi](https://github.com/alphaolomi)\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%2Falphaolomi%2Flaravel-shoket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphaolomi%2Flaravel-shoket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphaolomi%2Flaravel-shoket/lists"}