PHPackages                             danvick/yii2-daraja - 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. [API Development](/categories/api)
4. /
5. danvick/yii2-daraja

ActiveYii2-extension[API Development](/categories/api)

danvick/yii2-daraja
===================

Yii2 extension for integrating with Safaricom's Daraja API

0511PHP

Since Aug 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/danvick/yii2-daraja)[ Packagist](https://packagist.org/packages/danvick/yii2-daraja)[ RSS](/packages/danvick-yii2-daraja/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Daraja - **HIGHLY EXPERIMENTAL! - DONT USE YET**
=====================================================

[](#yii2-daraja---highly-experimental---dont-use-yet)

==============

Yii2 extension for integrating with Safaricom's Daraja API

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

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

[](#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' => [

],
```

Usage
-----

[](#usage)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/90f313a3918693b91da6bad0ec9a5877f6f8188ae04f0bdbcb58602e08320cee?d=identicon)[danvick](/maintainers/danvick)

---

Top Contributors

[![danvick](https://avatars.githubusercontent.com/u/7383575?v=4)](https://github.com/danvick "danvick (10 commits)")

### Embed Badge

![Health badge](/badges/danvick-yii2-daraja/health.svg)

```
[![Health](https://phpackages.com/badges/danvick-yii2-daraja/health.svg)](https://phpackages.com/packages/danvick-yii2-daraja)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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