{"id":19870240,"url":"https://github.com/alphaolomi/php-shoket","last_synced_at":"2025-10-12T17:17:36.349Z","repository":{"id":39668505,"uuid":"458458738","full_name":"alphaolomi/php-shoket","owner":"alphaolomi","description":"Shoket Client for PHP","archived":false,"fork":false,"pushed_at":"2023-10-23T19:43:46.000Z","size":44,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-02T08:46:13.749Z","etag":null,"topics":["mobile-money","payment-api","payments","php","php-shoket"],"latest_commit_sha":null,"homepage":"https://alphaolomi.github.io/php-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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"patreon":"alphaolomi"}},"created_at":"2022-02-12T08:01:50.000Z","updated_at":"2023-03-10T09:31:02.000Z","dependencies_parsed_at":"2025-05-02T08:36:47.845Z","dependency_job_id":"c4b88e7b-eeff-4d9d-9a56-8986b6c535e9","html_url":"https://github.com/alphaolomi/php-shoket","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/alphaolomi/php-shoket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fphp-shoket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fphp-shoket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fphp-shoket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fphp-shoket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphaolomi","download_url":"https://codeload.github.com/alphaolomi/php-shoket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fphp-shoket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012186,"owners_count":26085079,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["mobile-money","payment-api","payments","php","php-shoket"],"created_at":"2024-11-12T16:08:23.572Z","updated_at":"2025-10-12T17:17:36.314Z","avatar_url":"https://github.com/alphaolomi.png","language":"PHP","funding_links":["https://patreon.com/alphaolomi"],"categories":[],"sub_categories":[],"readme":"# Shoket Client for PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/shoket/php-shoket.svg?style=flat-square)](https://packagist.org/packages/shoket/php-shoket)\n[![Tests](https://github.com/alphaolomi/php-shoket/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/alphaolomi/php-shoket/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/shoket/php-shoket.svg?style=flat-square)](https://packagist.org/packages/shoket/php-shoket)\n\n\nA Truly simple payments for your business. Shoket makes online payments more easier for all kind of business in Tanzania. From startups, small businesses to medium and large businesses.\n\n## Documentation\n\nYou can find the documentation for this package on [Docs](https://alphaolomi.github.io/php-shoket/)\n\n## Installation\n\n\u003e Requires PHP 8.0 or higher\n\n\u003e For Laravel users there is a dedicated intergration package [laravel-shoket](https://github.com/alphaolomi/laravel-shoket)\n\nYou can install the package via composer:\n\n```bash\ncomposer require shoket/php-shoket\n```\n\n## Usage\n\n```php\n// Create a new instance of the client\n$shoket = new Shoket(['apiSecret' =\u003e 'your-api-key']);\n\n// Make a payment request\n$response = $shoket-\u003emakePaymentRequest([\n    \"amount\" =\u003e \"5000\",\n    \"customer_name\" =\u003e \"John Doe\",\n    \"email\" =\u003e \"john@user.com\",\n    \"number_used\" =\u003e \"255612345678\",\n    \"channel\" =\u003e \"Tigo\",\n]);\n\n// Print the response\nprint_r($response);\n```\n\n## API Available\n\n-   makePaymentRequest\n-   verifyPayment\n\n\n##  Make payment request API\nExample\n```php\n// Create a new instance of the client\n$shoket = new Shoket(['apiSecret' =\u003e 'your-api-key']);\n\n// Make a payment request\n$response = $shoket-\u003emakePaymentRequest([\n    \"amount\" =\u003e \"5000\",\n    \"customer_name\" =\u003e \"John Doe\",\n    \"email\" =\u003e \"john@user.com\",\n    \"number_used\" =\u003e \"255612345678\",\n    \"channel\" =\u003e \"Tigo\",\n]);\n\n// Print the response\nvar_dump($response);\n```\n\n##   verifyPayment API\nExample\n```php\n\n$shoketClient = new Shoket(['apiSecret' =\u003e 'your-api-key']);\n\n// Get the payment reference from the a successful payment request\n// Sample: adz49dS428b7kbDTdG4MN\n$reference = 'your-reference-number'; \n\n$response  = $shoketClient-\u003everifyPaymentRequest($reference,[\n    \"provider_name\"=\u003e \"Vodacom\",\n    \"provider_code\"=\u003e \"MPESA\"\n]);\n\nvar_dump($response);\n```\n## Testing\nUses [Pest Testing Framework](https://pestphp.com/)\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%2Fphp-shoket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphaolomi%2Fphp-shoket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphaolomi%2Fphp-shoket/lists"}