PHPackages                             coinwaka/laravel-coinwaka - 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. coinwaka/laravel-coinwaka

ArchivedLibrary[Payment Processing](/categories/payments)

coinwaka/laravel-coinwaka
=========================

Laravel integration for the Coinwaka Pay API.

v1.0.1(1mo ago)00MITPHPPHP &gt;=8.1CI passing

Since Jun 23Pushed 1mo agoCompare

[ Source](https://github.com/coinwaka/laravel-coinwaka)[ Packagist](https://packagist.org/packages/coinwaka/laravel-coinwaka)[ RSS](/packages/coinwaka-laravel-coinwaka/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

coinwaka/laravel-coinwaka
=========================

[](#coinwakalaravel-coinwaka)

Laravel integration for the [Coinwaka Pay API](https://developers.coinwaka.com), on top of the [`coinwaka/coinwaka-php`](../coinwaka-php) SDK. Auto-discovered service provider + facade, a publishable config, and a signed webhook receiver that dispatches a Laravel event.

```
composer require coinwaka/laravel-coinwaka
php artisan vendor:publish --tag=coinwaka-config
```

```
COINWAKA_SECRET_KEY=cwk_test_sk_...
COINWAKA_WEBHOOK_SECRET=whsec_...
```

Create a payment
----------------

[](#create-a-payment)

```
use Coinwaka\Laravel\Facades\Coinwaka;

$intent = Coinwaka::paymentIntents()->create([
    'amount' => (string) $order->total,
    'currency' => 'KES',
    'settlement_currency' => 'USDT',
    'payment_methods' => ['mpesa', 'card', 'coinwaka_balance'],
    'merchant_reference' => (string) $order->id,
]);

return redirect()->away($intent['checkout_url']);
```

Or inject the client: `public function store(\Coinwaka\Coinwaka $coinwaka)`.

Handle webhooks
---------------

[](#handle-webhooks)

The package registers `POST /coinwaka/webhook` (configurable), verifies the signature, and dispatches an event. Add the URL in your Coinwaka console and put its signing secret in `COINWAKA_WEBHOOK_SECRET`. Then listen:

```
use Coinwaka\Laravel\Events\CoinwakaWebhookReceived;

Event::listen(function (CoinwakaWebhookReceived $event) {
    if ($event->type() === 'payment_intent.paid') {
        $orderId = $event->data()['merchant_reference'] ?? null;
        // fulfil the order; dedupe on $event->id()
    }
});
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de1c9767bd7c42021d0b5d9485f75c5c8c51da1a059100e5cdb6177dd937c71b?d=identicon)[patrickngure45](/maintainers/patrickngure45)

---

Tags

laravelcryptopaymentsmpesacoinwaka

### Embed Badge

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

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

###  Alternatives

[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3827.1k](/packages/linkxtr-laravel-qrcode)[itsmurumba/laravel-mpesa

Laravel Package for Mpesa Daraja API

2011.1k](/packages/itsmurumba-laravel-mpesa)

PHPackages © 2026

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