danvick / yii2-daraja
Yii2 extension for integrating with Safaricom's Daraja API
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-httpclient: *
Requires (Dev)
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-04-14 14:12:16 UTC
README
==============
Yii2 extension for integrating with Safaricom's Daraja API
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist danvick/yii2-daraja "*"
or add
"danvick/yii2-daraja": "*"
to the require
section of your composer.json
file.
To always use the latest version from Github, in your composer.json
, add this repository to the repositories
section.
{ ... "repositories": [ { "type": "vcs", "url": "https://github.com/danvick/yii2-daraja" } ], }
Setup
The extension is used as an application component and configured in the application configuration as such:
'components' => [ ... 'daraja' => [ 'class' => Daraja::class, ], ]
You also should configure the extension's commands to use them.
'controllerMap' => [
],