PHPackages                             integrateideas/tango-raas-api-php - 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. integrateideas/tango-raas-api-php

ActiveLibrary[API Development](/categories/api)

integrateideas/tango-raas-api-php
=================================

TangoCard RAAS PHP SDK

0.0.0.2-beta(4y ago)021MITPHPPHP &gt;=8.0

Since Jun 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spmsupun/tango-raas-api-php)[ Packagist](https://packagist.org/packages/integrateideas/tango-raas-api-php)[ RSS](/packages/integrateideas-tango-raas-api-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)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:

```
Integrateideas\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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.6% 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 ~0 days

Total

2

Last Release

1809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a025b28b3741a1244d992b479b4ca9fc9565e36e3777c691e5934e6997a1afad?d=identicon)[spmsupun](/maintainers/spmsupun)

---

Top Contributors

[![spmsupun](https://avatars.githubusercontent.com/u/1854023?v=4)](https://github.com/spmsupun "spmsupun (10 commits)")[![nitesh091](https://avatars.githubusercontent.com/u/19575147?v=4)](https://github.com/nitesh091 "nitesh091 (9 commits)")

---

Tags

sdktangocard

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

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