PHPackages                             bamboopayment/bamboopayment-sdk - 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. bamboopayment/bamboopayment-sdk

ActiveLibrary[Payment Processing](/categories/payments)

bamboopayment/bamboopayment-sdk
===============================

PHP SDK to interact with BambooPayment PCI API

v0.10.0(4y ago)1272MITPHPPHP ^7.2

Since Apr 22Pushed 4y ago2 watchersCompare

[ Source](https://github.com/BambooPayment/sdk_php)[ Packagist](https://packagist.org/packages/bamboopayment/bamboopayment-sdk)[ Docs](https://bamboopayment.com)[ RSS](/packages/bamboopayment-bamboopayment-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (42)Used By (0)

bamboopayment-sdk
=================

[](#bamboopayment-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/74a846c33d57e52fbfcbf3b571d84094aaf4bf6d9d0b55c47ed4fbe15635e47c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616d626f6f7061796d656e742f62616d626f6f7061796d656e742d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bamboopayment/bamboopayment-sdk)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://github.com/BambooPayment/sdk_php/workflows/build/badge.svg)](https://github.com/BambooPayment/sdk_php/actions?query=workflow%3A%22build%22)[![Coverage Status](https://camo.githubusercontent.com/db457a1a53e2d163d3640bc0bd91a15797b0bc6146e1deec8621940ede405afc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f42616d626f6f5061796d656e742f73646b5f7068702f62616467652e7376673f6272616e63683d6d6173746572266b696c6c5f63616368653d31)](https://coveralls.io/github/BambooPayment/sdk_php?branch=master)[![Total Downloads](https://camo.githubusercontent.com/d29cbb5a76247f9ce8bef16c391783e3aa6c723bd89c9ca623777479faf62c4e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616d626f6f7061796d656e742f62616d626f6f7061796d656e742d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bamboopayment/bamboopayment-sdk)

System Requirements
-------------------

[](#system-requirements)

You need PHP &gt;= 7.4

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`json`](https://secure.php.net/manual/en/book.json.php) (This extension implements the [» JavaScript Object Notation (JSON)](https://www.json.org) data-interchange format.)
- [`guzzle`](https://docs.guzzlephp.org/) (Guzzle is a PHP HTTP client to send HTTP requests and to integrate with web services.)
- [`generated-hydrator`](https://secure.php.net/manual/en/book.curl.php) (GeneratedHydrator is a library about high performance transition of data from arrays to objects and from objects to arrays.)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Documentation
-------------

[](#documentation)

Full documentation: [Spanish](https://dev.bamboopayment.com/docs/es-api-bamboo-payment-pci/), [English](https://dev.bamboopayment.com/docs/en-api-bamboo-payment-pci/), [Portuguese](https://dev.bamboopayment.com/docs/pt-api-bamboo-payment-pci/).

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

[](#installation)

#### Composer

[](#composer)

To install with Composer, simply run the following command:

```
composer require bamboopayment/bamboopayment-sdk
```

Or you can manually add the requirement to your composer.json file:

```
{
  "require" : {
    "bamboopayment/bamboopayment-sdk" : "0.1.*"
  }
}
```

Then install by running

```
composer.phar install
```

#### Manual installation

[](#manual-installation)

Obtain the latest version of BambooPayment SDK with:

```
git clone https://github.com/BambooPayment/sdk_php.git
```

Getting started
---------------

[](#getting-started)

If you are using Composer use autoload functionality:

```
include "vendor/autoload.php";
```

Usage
-----

[](#usage)

#### Creating a customer

[](#creating-a-customer)

File with working example: [examples/customers/create.php](examples/customers/create.php)

To create an order using REST API in back-end you must provide an Array with customer data:

in your controller

```
    $bambooPaymentClient = new BambooPaymentClient(
        [
            'api_key' => PRIVATE_KEY,
            'testing' => true,
        ]
    );

    $customer = $bambooPaymentClient->customers->create(
        [
            'Email'          => 'testing@bamboopayment.com',
            'FirstName'      => 'PrimerNombre',
            'LastName'       => 'PrimerApellido',
            'DocNumber'      => 12345672,
            'DocumentTypeId' => 2,
            'PhoneNumber'    => '24022330',
            'BillingAddress' => [
                'AddressType'   => 1,
                'Country'       => 'UY',
                'State'         => 'Montevideo',
                'City'          => 'MONTEVIDEO',
                'AddressDetail' => '10000'
            ]
        ]
    );
```

#### Creating a purchase

[](#creating-a-purchase)

File with working example: [examples/purchases/create.php](examples/purchases/create.php)

To create an order using REST API in back-end you must provide an Array with purchase data:

in your controller

```
    $bambooPaymentClient = new BambooPaymentClient(
        [
            'api_key' => PRIVATE_KEY,
            'testing' => true,
        ]
    );

    $purchase = $bambooPaymentClient->purchases->create(
        [
            'TrxToken'     => 'OT__klLNXDDkgAvk1KXG-i6SIUxo-ACnvpjf4jiYpVJ8SzQ_',
            'Order'        => '12345678',
            'Amount'       => 100,
            'Installments' => 1,
            'Customer'     => [
                'Email'          => 'juanperez123@bamboopayment.com',
                'FirstName'      => 'Juan',
                'LastName'       => 'Perez',
                'PhoneNumber'    => '099123123',
                'DocNumber'      => '12345672',
                'DocumentTypeId' => 2,
                'BillingAddress' => [
                    'AddressType'   => 1,
                    'Country'       => 'Uruguay',
                    'State'         => 'Montevideo',
                    'City'          => 'MONTEVIDEO',
                    'AddressDetail' => 'Av. Sarmiento 2260'
                ]
            ],
            'DataUY'       => [
                'IsFinalConsumer' => 'true',
                'Invoice'         => '1000',
                'TaxableAmount'   => 100
            ],
            'Currency'     => 'UYU',
            'Capture'      => 'true'
        ]
    );
```

Contributing
------------

[](#contributing)

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes using the [Angular Contributing Guide](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type) (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Run composer test to test your code (`composer test`)
6. Create new Pull Request

Support
-------

[](#support)

For support, email

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~6 days

Total

41

Last Release

1601d ago

PHP version history (2 changes)v0.0.1PHP ^7.4

v0.5.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/55d27a1ec9a94bf6d27704c4262bf7530b4b5fa1576eda6568c305360e537451?d=identicon)[solcre](/maintainers/solcre)

---

Top Contributors

[![Izarrualde](https://avatars.githubusercontent.com/u/47953043?v=4)](https://github.com/Izarrualde "Izarrualde (100 commits)")[![diego-sorribas](https://avatars.githubusercontent.com/u/16760271?v=4)](https://github.com/diego-sorribas "diego-sorribas (30 commits)")

---

Tags

phpsdkpaymentspagopcibamboopaymentsiempre

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/bamboopayment-bamboopayment-sdk/health.svg)

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

PHPackages © 2026

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