PHPackages                             buildrr/tango-raas-api - 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. [API Development](/categories/api)
4. /
5. buildrr/tango-raas-api

ActiveLibrary[API Development](/categories/api)

buildrr/tango-raas-api
======================

TangoCard RAAS PHP SDK

v1.0(3y ago)0114↓75%MITPHPPHP &gt;=8.0

Since Nov 9Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Buildrr/tango-raas-api)[ Packagist](https://packagist.org/packages/buildrr/tango-raas-api)[ Docs](https://github.com/buildrr/tango-raas-api)[ RSS](/packages/buildrr-tango-raas-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### Tango Rewards as a Service v2 API for PHP

[](#tango-rewards-as-a-service-v2-api-for-php)

TangoCard RAAS PHP SDK for RAAS api v2

Refer to Tango Raas API for actual response and requests. [https://integration-www.tangocard.com/raas\_api\_console/v2/](https://integration-www.tangocard.com/raas_api_console/v2/)

Usage
-----

[](#usage)

Initialize the base Tango Object with your API credentials.

```
$tangocard = new TangoCard('PLATFORM_ID','PLATFORM_KEY');

$tangocard->setAppMode("sandbox"); //Default mode is production.

```

Valid Values : "production", "sandbox"

Raas API Calls:

All Raas api calls return a stdObject with two properties: status and data The data property contains the response from the RaaS API as an stdObject.

Response Structure:

```
Buildrr\TangoRaasApi\TangoCardResponse Object
(
    [status] => //contains status of the request : True if api response is 2x else false
    [data] => stdClass Object
        (
        	//contains requested data
        )
)

```

1. Get a list of all Customers

    ```
     $tangoCard->getCustomers();

    ```
2. Create a new Customer

    ```
     $tangoCard->createCustomer($customerIdentifier,$displayName);

    ```
3. Get details for a specific Customer

    ```
     $tangoCard->getCustomerInfo($customerIdentifier);

    ```
4. Get a list of all Accounts created for a specific Customer

    ```
     $tangoCard->getCustomerAccounts($customerIdentifier);

    ```
5. Create an Account under a specific Customer

    ```
     $tangoCard->createCustomerAccount($customerIdentifier,$contactEmail,$displayName,$accountIdentifier);

    ```
6. Get a list of Accounts

    ```
     $tangoCard->getAccountList();

    ```
7. Get details for a specific Account

    ```
     $tangoCard->getAccountDetail($accountIdentifier);

    ```
8. Fund an Account

    ```
     $tangoCard->fundAccount($customerIdentifier,$accountIdentifier,$creditCardToken,$amount);

    ```
9. Unregister a Credit Card

    ```
     $tangoCard->unregisterCreditCard($customerIdentifier,$accountIdentifier,$creditCardToken);

    ```
10. List all credit cards

    ```
    $tangoCard->getCreditCardList();

    ```
11. Register a new Credit Card

    ```
    $tangoCard->registerCreditCard($customerIdentifier,$accountIdentifier,$cardNumber,$verificationNumber,$expiration,$firstName,$lastName,$emailAddress,$addressLine1,$addressLine2,$city,$state,$postalCode,$country,$ipAddress,$label);

    ```
12. Get details for a specific Credit Card

    ```
    $tangoCard->getCreditCardDetail($creditCardToken);

    ```
13. Get all items in the Platform's Catalog

    ```
    $tangoCard->getCatalogs();

    ```
14. Get a list of Orders

    ```
    $tangoCard->getOrderList();

    ```
15. Create an Order under a specific Account

    ```
    $tangoCard->placeOrder($customerIdentifier,$accountIdentifier,$amount,$utid,$sendEmail,$recipientEmail,$recipientFirstName,$recipientLastName,$campaign,$emailSubject,$message,$notes,$senderEmail,$senderFirstName,$senderLastName,$externalRefID);

    ```
16. Get details for a specific Order

    ```
    $tangoCard->getOrderDetail($refOrderId);

    ```
17. Resend a specific Order

    ```
    $tangoCard->resendOrder($referenceOrderID);

    ```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1286d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/447618?v=4)[Arvind Kumar](/maintainers/inimist)[@inimist](https://github.com/inimist)

---

Top Contributors

[![inimist](https://avatars.githubusercontent.com/u/447618?v=4)](https://github.com/inimist "inimist (2 commits)")

---

Tags

sdktangocard

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/buildrr-tango-raas-api/health.svg)

```
[![Health](https://phpackages.com/badges/buildrr-tango-raas-api/health.svg)](https://phpackages.com/packages/buildrr-tango-raas-api)
```

###  Alternatives

[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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