danvick / yii2-daraja
Yii2 extension for integrating with Safaricom's Daraja API
dev-main
2022-08-24 10:04 UTC
Requires
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-httpclient: *
Requires (Dev)
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2026-03-14 16:20:00 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' => [
],