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

ActiveSymfony-bundle[Payment Processing](/categories/payments)

cometcult/braintree-bundle
==========================

Symfony 2 Bundle for Braintree's PHP client library

0.1.0(10y ago)2185.9k20[1 issues](https://github.com/cometcult/CometCultBraintreeBundle/issues)MITPHPPHP &gt;=5.3.2

Since Dec 11Pushed 8y ago4 watchersCompare

[ Source](https://github.com/cometcult/CometCultBraintreeBundle)[ Packagist](https://packagist.org/packages/cometcult/braintree-bundle)[ Docs](http://github.com/cometcult/CometCultBraintreeBundle)[ RSS](/packages/cometcult-braintree-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

CometCultBraintreeBundle
========================

[](#cometcultbraintreebundle)

[![Build Status](https://camo.githubusercontent.com/cfee16f8facc9e54e206c0a23c64cceb5c0e830245d3fba908207170d486ffff/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f636f6d657463756c742f436f6d657443756c74427261696e7472656542756e646c652e706e67)](http://travis-ci.org/cometcult/CometCultBraintreeBundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/a558b995a7ab8cbff145115bfbfa2604766f6cb7113098ac9bbf6db784aefb27/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6d657463756c742f436f6d657443756c74427261696e7472656542756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d31393732613865623432353734303666346534336139623934346461633033663137613031323664)](https://scrutinizer-ci.com/g/cometcult/CometCultBraintreeBundle/)

Symfony 2 Bundle for Braintree's PHP client library

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

[](#installation)

### Composer

[](#composer)

Just add to your composer.json file:

```
{
    "require": {
        "cometcult/braintree-bundle": "dev-master"
    }
}
```

### Application Kernel

[](#application-kernel)

Add the bundle to your application's kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new CometCult\BraintreeBundle\CometCultBraintreeBundle(),
        // ...
    );
}
```

Configuration
-------------

[](#configuration)

```
# app/config/config.yml
# ...
comet_cult_braintree:
  environment: sandbox
  merchant_id: your_merchant_id
  public_key: your_public_key
  private_key: your_private_key
```

For more info about the configuration variables see [Braintree docs](https://www.braintreepayments.com/docs/php/guide/getting_paid#configuration)

Usage
-----

[](#usage)

Braintree php client library comes with a bunch of services for the Braintree API. They are usually prefixed by `Braintree_`. To see all available Braintree services head over to [braintree\_php](https://github.com/braintree/braintree_php) or the [official documentation](https://www.braintreepayments.com/docs/php).

### Factory

[](#factory)

One of the methods for getting a desired service is to call the `get` method from the `BraintreeFactory`:

```
// in your controller
$factory = $this->get('comet_cult_braintree.factory');
$customerService = $factory->get('customer');
```

### Defining a service

[](#defining-a-service)

Instead of calling the factory you can define a custom service in your own bundle:

```
# ../services.yml
services:
    customer_custom_service:
        class:            Braintree_Customer
        factory_service:  comet_cult_braintree.factory
        factory_method:   get
        arguments: ["customer"]
```

Then in your controller you can go with:

```
$customerService = $this->get('customer_custom_service');
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

3811d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26375?v=4)[Even André Fiskvik](/maintainers/grEvenX)[@grEvenX](https://github.com/grEvenX)

---

Top Contributors

[![grEvenX](https://avatars.githubusercontent.com/u/26375?v=4)](https://github.com/grEvenX "grEvenX (5 commits)")[![karolsojko](https://avatars.githubusercontent.com/u/311058?v=4)](https://github.com/karolsojko "karolsojko (2 commits)")

---

Tags

bundlepaymentcardbraintreecredit

### Embed Badge

![Health badge](/badges/cometcult-braintree-bundle/health.svg)

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

###  Alternatives

[freelancehunt/php-credit-card-validator

Validates popular debit and credit cards' numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.

18620.4k2](/packages/freelancehunt-php-credit-card-validator)[omnipay/braintree

Braintree gateway for Omnipay payment processing library

35558.0k3](/packages/omnipay-braintree)[mrprompt/cielo

Integration with Cielo gateway.

481.9k1](/packages/mrprompt-cielo)

PHPackages © 2026

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