PHPackages                             malith124/laravel6-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. malith124/laravel6-braintree

ActiveLibrary[Payment Processing](/categories/payments)

malith124/laravel6-braintree
============================

Braintree Service Provider for Laravel 6

1.0.6(3y ago)09MITPHPPHP &gt;=5.4.0

Since Jan 18Pushed 3y agoCompare

[ Source](https://github.com/Malith1994124/laravel6-braintree)[ Packagist](https://packagist.org/packages/malith124/laravel6-braintree)[ Docs](https://github.com/odannyc/laravel-braintree)[ RSS](/packages/malith124-laravel6-braintree/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Braintree for Laravel 5
=======================

[](#braintree-for-laravel-5)

### Installation

[](#installation)

In your Laravel project's composer.json file, add `odannyc/laravel5-braintree` as a dependency in the require object:

```
"odannyc/laravel5-braintree": "dev-master"
```

You do *not* need to add any other dependencies, as `odannyc/laravel5-braintree` loads in the other dependencies automatically.

Finally, do a `composer update`.

Once installed, add the ServiceProvider to your provider array within `config/app.php`:

```
'providers' => [
	....
	/*
	 * Braintree Service Provider
	 */
    'odannyc\Laravel\BraintreeServiceProvider',
]
```

### Configuration

[](#configuration)

To publish a the package configuration file, run:

```
php artisan vendor:publish
```

Then open `config/odannyc.braintree.php` to setup your environment and keys:

### Usage

[](#usage)

Once setup, you can use the Braintree PHP classes as spelled out in the [documentation](https://www.braintreepayments.com/docs/php/transactions/overview).

#### braintree.js (v2)

[](#braintreejs-v2)

If you are using [braintree.js (v2)](https://www.braintreepayments.com/docs/javascript), then you can easily output a generated client token using '@braintreeClientToken'.

Below is an example:

```

	braintree.setup("@braintreeClientToken", "", options);

```

#### braintree.js (v1)

[](#braintreejs-v1)

If you are using the lagacy version [braintree.js (v1)](https://www.braintreepayments.com/braintrust/braintree-js), you can output your client side encryption key into your blade views.

The service provider extends the blade view to allow you to use the '@braintreeClientSideEncryptionKey' to output the CSE Key from your config file.

Below is an example.

```

    var braintree = Braintree.create("@braintreeClientSideEncryptionKey");
    ...

```

### Credits

[](#credits)

Thanks to the [bradleyboy/laravel-braintree](https://github.com/bradleyboy/laravel-braintree) package. I used it as a base and converted it into Laravel 5.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36a5d578745065994ce52593245a3a666c6668826d167fd2462610563d0eee48?d=identicon)[malith124](/maintainers/malith124)

---

Top Contributors

[![bradleyboy](https://avatars.githubusercontent.com/u/755001?v=4)](https://github.com/bradleyboy "bradleyboy (16 commits)")[![odannyc](https://avatars.githubusercontent.com/u/12864641?v=4)](https://github.com/odannyc "odannyc (9 commits)")[![Malith1994124](https://avatars.githubusercontent.com/u/18634794?v=4)](https://github.com/Malith1994124 "Malith1994124 (2 commits)")

---

Tags

braintreebraintree laravel 5

### Embed Badge

![Health badge](/badges/malith124-laravel6-braintree/health.svg)

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

###  Alternatives

[omnipay/braintree

Braintree gateway for Omnipay payment processing library

35558.0k3](/packages/omnipay-braintree)[cometcult/braintree-bundle

Symfony 2 Bundle for Braintree's PHP client library

2185.9k](/packages/cometcult-braintree-bundle)[mmanos/laravel-billing

A billing package for Laravel 4.

451.3k](/packages/mmanos-laravel-billing)

PHPackages © 2026

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