PHPackages                             alkurn/yii2-braintree - 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. alkurn/yii2-braintree

ActiveYii2-extension[Payment Processing](/categories/payments)

alkurn/yii2-braintree
=====================

yii 2 braintree integration

0142PHP

Since Jun 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alkurn/yii2-braintree)[ Packagist](https://packagist.org/packages/alkurn/yii2-braintree)[ RSS](/packages/alkurn-yii2-braintree/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii 2 Braintree Integration
===========================

[](#yii-2-braintree-integration)

braintree for yii 2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist alkurn/yii2-braintree "dev-master"

```

or add

```
"alkurn/yii2-braintree": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, you should configure it in the application configuration like the following,

```
'components' => [
    'braintree' => [
        'class' => 'alkurn\braintree\Braintree',
        'environment' => 'sandbox',
        'merchantId' => 'your_merchant_id',
        'publicKey' => 'your_public_key',
        'privateKey' => 'your_private_key',
    ]
]
```

\*\* Creating a customer

```
Yii::$app->braintree->gateway->customer()->create(['firstName' => 'first_name',
             'lastName' => 'last_name',
             'paymentMethodNonce' => 'Nonce']);

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/485ae3b1c7496e2d8d100c7c12274e3e7d490afc132ef1b3a2b2a30f10727e1e?d=identicon)[gmankar](/maintainers/gmankar)

### Embed Badge

![Health badge](/badges/alkurn-yii2-braintree/health.svg)

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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