PHPackages                             shoket/laravel-shoket - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. shoket/laravel-shoket

ActiveLibrary[Payment Processing](/categories/payments)

shoket/laravel-shoket
=====================

Laravel Shoket Intergation

v0.0.4(3y ago)81172[2 PRs](https://github.com/alphaolomi/laravel-shoket/pulls)MITPHPPHP ^8.0|^8.1

Since Feb 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alphaolomi/laravel-shoket)[ Packagist](https://packagist.org/packages/shoket/laravel-shoket)[ Docs](https://github.com/shoket/laravel-shoket)[ Patreon](https://www.patreon.com/alphaolomi)[ RSS](/packages/shoket-laravel-shoket/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (13)Versions (8)Used By (0)

Laravel Shoket Integration
==========================

[](#laravel-shoket-integration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b9657395730501d04a82364c958b2af854637afa26c3032e501aac5bf08ca694/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686f6b65742f6c61726176656c2d73686f6b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shoket/laravel-shoket)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2dcb5d63c59ff45d2725ce390428880e8a8870ed8d465ccef0d36f52ae8af7ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6c61726176656c2d73686f6b65742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/alphaolomi/laravel-shoket/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/afa0c642a3f25619baea8740d53a2bfe15f1fc1e9f42978fc35805fa78243d78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6c61726176656c2d73686f6b65742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/shoket/laravel-shoket/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9d1893c85cf0bf01de851d2cd202dd9d121cb10e3c5f64953722bb83fedb7057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686f6b65742f6c61726176656c2d73686f6b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shoket/laravel-shoket)

A simple integration of Shoket's Payments API into your Laravel application.

From Shokets website

"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."

Installation
------------

[](#installation)

> Requiremnts PHP 8.0+ and Laravel 8+

You can install the package via composer:

```
composer require shoket/laravel-shoket
```

You can publish the config file with:

```
php artisan vendor:publish --tag="shoket-config"
```

- Update the env adding the `SHOKET_API_SECRET`

Usage
-----

[](#usage)

You can use the `Shoket::makePaymentRequest([...])` method to accept payments.

### Simple and direct

[](#simple-and-direct)

```
use Shoket\Laravel\Facades\Shoket;

$chargeResponse = Shoket::makePaymentRequest([
    "amount" => "200",
    "customer_name" => "John Doe",
    "email" =>  "john@user.com",
    "number_used" => "255612345678",
    "channel" =>  "Tigo"
]);

// OR
$referenceId = "abcd124";
$chargeResponse = Shoket::verifyPaymentRequest($referenceId, [
    "provider_name" => "Vodacom",
    "provider_code" => "MPESA"
]);
// ...
```

Avaibale Commands
-----------------

[](#avaibale-commands)

The package is bundled with 2 commands

- AcceptPayment \[WIP\]
- VerifyPayment \[WIP\]

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alpha Olomi](https://github.com/alphaolomi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Total

4

Last Release

1448d ago

PHP version history (2 changes)v0.0.1PHP ^8.0

v0.0.3PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7534dd7341d883267be41935354b56c27f94d6bbd6a7abd9f257bb2d494a3798?d=identicon)[alphao](/maintainers/alphao)

---

Top Contributors

[![alphaolomi](https://avatars.githubusercontent.com/u/10551599?v=4)](https://github.com/alphaolomi "alphaolomi (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

laravelpackagephpshoketlaravelpaymentshoketlaravel-shoket

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/shoket-laravel-shoket/health.svg)

```
[![Health](https://phpackages.com/badges/shoket-laravel-shoket/health.svg)](https://phpackages.com/packages/shoket-laravel-shoket)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
