PHPackages                             n00b-runner/braintree\_laravel - 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. n00b-runner/braintree\_laravel

ActiveLibrary[Payment Processing](/categories/payments)

n00b-runner/braintree\_laravel
==============================

Braintree Service Provider for Laravel 5 and Braintree &gt;= 3.35.0

030PHP

Since Aug 11Pushed 7y agoCompare

[ Source](https://github.com/n00b-Runner/braintree_laravel)[ Packagist](https://packagist.org/packages/n00b-runner/braintree_laravel)[ RSS](/packages/n00b-runner-braintree-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

### Installation

[](#installation)

In your Laravel project's composer.json file, add `n00b-runner/braintree_laravel` as a dependency in the require object:

```
"n00b-runner/braintree_laravel": "dev-master"
```

You do *not* need to add any other dependencies, as `n00b-runner/braintree_laravel` 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
	 */
    'Noobrunner\Laravel\BraintreeServiceProvider',
]
```

### Configuration

[](#configuration)

To publish the package configuration file, run:

```
php artisan vendor:publish
```

Then open `config/noobrunner.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 [oureastudios/laravel5-braintree](https://github.com/oureastudios/laravel5-braintree) package. I used it as a base and converted it into Laravel 5 for Braintree version 3.35.0.

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

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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/6c4ea7eb7b5f032e68f770b803d16a83b2f83b5d71b69f080303a81dbf89de16?d=identicon)[n00b-Runner](/maintainers/n00b-Runner)

---

Top Contributors

[![n00b-Runner](https://avatars.githubusercontent.com/u/25134878?v=4)](https://github.com/n00b-Runner "n00b-Runner (10 commits)")

### Embed Badge

![Health badge](/badges/n00b-runner-braintree-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/n00b-runner-braintree-laravel/health.svg)](https://phpackages.com/packages/n00b-runner-braintree-laravel)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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