ilebora / boracom-php
PHP SDK for the BoraCom Communications and Payments API
v0.1.0
2026-09-22 10:43 UTC
Requires
- php: ^8.2
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-22 10:49:29 UTC
README
PHP SDK for the BoraCom Communications and Payments API.
Installation
composer require ilebora/boracom-php
Authentication
$boracom = new \Ilebora\BoraCom\BoraCom( env('BORACOM_API_KEY') );
M-Pesa
$response = $boracom->mpesa()->stkPush([ 'application_id' => 'your_app_id', 'reference' => 'chk_123', 'amount' => 300, 'currency' => 'KES', 'phone' => '254741136255', 'description' => 'Premium Subscription', ]);
Check Payment
$payment = $boracom->payments()->get( 'your_app_id', 'chk_123' );
if ($payment->completed()) { // Payment received }