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

ActiveLibrary[Payment Processing](/categories/payments)

mschinis/braintree
==================

A Braintree Service provider, wrapper with examples for Laravel

47323[1 issues](https://github.com/mschinis/braintree/issues)PHP

Since Feb 24Pushed 11y ago2 watchersCompare

[ Source](https://github.com/mschinis/braintree)[ Packagist](https://packagist.org/packages/mschinis/braintree)[ RSS](/packages/mschinis-braintree/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Braintree Package for Laravel 4.2
=================================

[](#braintree-package-for-laravel-42)

### Installation

[](#installation)

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

```
"mschinis/braintree": "dev-master"
```

Use `composer update` for composer to update the dependencies and download the package.

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

```
'providers' => array(

    'Mschinis\Braintree\BraintreeServiceProvider'

)
```

### Configuration

[](#configuration)

To publish the configuration file, run:

```
php artisan config:publish mschinis/braintree
```

Then open `app/config/packages/mschinis/braintree/config.php` to setup your environment and keys: Acceptable environment values are `sandbox` or `production`. All required keys can be found by logging in to your [sandbox](https://sandbox.braintreegateway.com/login) or [production](https://www.braintreegateway.com/login) account

```
