PHPackages                             kmj/paypalbridgebundle - 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. kmj/paypalbridgebundle

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

kmj/paypalbridgebundle
======================

Symfony2 Bundle creates a bridge for the PayPal REST SDK

641.7k9[1 issues](https://github.com/Demoboy/PayPalBridgeBundle/issues)[1 PRs](https://github.com/Demoboy/PayPalBridgeBundle/pulls)PHP

Since Mar 11Pushed 6y ago6 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

KMJPayPalBridgeBundle
=====================

[](#kmjpaypalbridgebundle)

Welcome to the KMJPayPalBridgeBundle. The goal of this bundle is to provide an easy way to integrate the Paypal SDK into a Symfony project.

1. Installation

---

KMJPayPalBridgeBundle can conveniently be installed via Composer. Just add the following to your composer.json file:

```
// composer.json
{
    // ...
    require: {
        // ..
        "paypal/rest-api-sdk-php": "dev-master",
        "kmj/paypalbridgebundle": "dev-master"

    }
}
```

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

```
    php composer.phar update
```

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your AppKernel.php file, and register the new bundle:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new KMJ\PayPalBridgeBundle\KMJPayPalBridgeBundle(),
    // ...
);
```

2. Usage

---

The KMJPayPalBridgeBundle is called as a standard service.

```
$this->get('paypal')
```

This returns a service that sets the paypal SDK with the proper ini settings. The service also contains a valid PayPal\\Rest\\ApiContext object that can be passed to other PayPal objects. This bundle also automatically swtiches the bundle based on the environment. The production environment is the only environment that gets the production endpoint for PayPal

3. Configuration

---

```
kmj_pay_pal_bridge:
    environment: sandbox/production                      //The environment to make the calls to
    sandbox:
        clientId:                                           //Client Id provided from developer.paypal.com
        secret:                                             //Client Secret provided from developer.paypal.com
    production:
        clientId:                                           //Client Id provided from developer.paypal.com
        secret:                                             //Client Secret provided from developer.paypal.com
    logs:
        enabled: true                                   //Should logs be used
        filename: %kernel.root_dir%/logs/paypal.log     //the location for the log file
        level: fine                                     //level of log reporting
    http:
        timeout: 30                                     //The http timeout before an error is generated
        retry: true                                     //Should the request be tried again if timeout is reached
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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/5d9b70bbf6fa98c51390303ea2b0c86cf3e989b846032ccc6be1ccb64bcc5212?d=identicon)[demoboy](/maintainers/demoboy)

---

Top Contributors

[![Demoboy](https://avatars.githubusercontent.com/u/1925283?v=4)](https://github.com/Demoboy "Demoboy (10 commits)")[![noreek](https://avatars.githubusercontent.com/u/1611136?v=4)](https://github.com/noreek "noreek (2 commits)")[![bassrock](https://avatars.githubusercontent.com/u/1010384?v=4)](https://github.com/bassrock "bassrock (1 commits)")

### Embed Badge

![Health badge](/badges/kmj-paypalbridgebundle/health.svg)

```
[![Health](https://phpackages.com/badges/kmj-paypalbridgebundle/health.svg)](https://phpackages.com/packages/kmj-paypalbridgebundle)
```

###  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)
