PHPackages                             user10/raas - 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. user10/raas

ActiveLibrary[API Development](/categories/api)

user10/raas
===========

With this RESTful API you can integrate a global reward or incentive program into your app or platform. If you have any questions or if you'd like to receive your own credentials, please contact us at devsupport@tangocard.com.

1.3.1(6y ago)025Apache-2.0PHPPHP &gt;=5.4.0

Since Jul 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/User10/raas)[ Packagist](https://packagist.org/packages/user10/raas)[ Docs](https://tangocard.com)[ RSS](/packages/user10-raas/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Getting started
===============

[](#getting-started)

With this RESTful API you can integrate a global reward or incentive program into your app or platform. If you have any questions or if you'd like to receive your own credentials, please contact us at .

How to Build
------------

[](#how-to-build)

The generated code has dependencies over external libraries like UniRest. These dependencies are defined in the `composer.json` file that comes with the SDK. To resolve these dependencies, we use the Composer package manager which requires PHP greater than 5.3.2 installed in your system. Visit  to download the installer file for Composer and run it in your system. Open command prompt and type `composer --version`. This should display the current version of the Composer installed if the installation was successful.

- Using command line, navigate to the directory containing the generated files (including `composer.json`) for the SDK.
- Run the command `composer install`. This should install all the required dependencies and create the `vendor` directory in your project directory.

[![Building SDK - Step 1](https://camo.githubusercontent.com/f8296e486e1eb7214cff4893c830df313f82246f7bb033abed166b5037acd887/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d696e7374616c6c446570656e64656e6369657326776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/f8296e486e1eb7214cff4893c830df313f82246f7bb033abed166b5037acd887/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d696e7374616c6c446570656e64656e6369657326776f726b7370616365466f6c6465723d526161732d504850)

### \[For Windows Users Only\] Configuring CURL Certificate Path in php.ini

[](#for-windows-users-only-configuring-curl-certificate-path-in-phpini)

CURL used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it will reject all SSL certificates as unverifiable. You will have to get your CA's cert and point curl at it. The steps are as follows:

1. Download the certificate bundle (.pem file) from  on to your system.
2. Add curl.cainfo = "PATH\_TO/cacert.pem" to your php.ini file located in your php installation. “PATH\_TO” must be an absolute path containing the .pem file.

```
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =
```

How to Use
----------

[](#how-to-use)

The following section explains how to use the Raas library in a new project.

### 1. Open Project in an IDE

[](#1-open-project-in-an-ide)

Open an IDE for PHP like PhpStorm. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.

[![Open project in PHPStorm - Step 1](https://camo.githubusercontent.com/2e1f73072f678d18491cd33852cd9da7b54e8c2032eead03b12535f2d103be63/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6f70656e49444526776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/2e1f73072f678d18491cd33852cd9da7b54e8c2032eead03b12535f2d103be63/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6f70656e49444526776f726b7370616365466f6c6465723d526161732d504850)

Click on `Open` in PhpStorm to browse to your generated SDK directory and then click `OK`.

[![Open project in PHPStorm - Step 2](https://camo.githubusercontent.com/ffae1f199787d9b3f73a41b8da3fa8e62df45471e4711ba3b4e492a8d493613d/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6f70656e50726f6a6563743026776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/ffae1f199787d9b3f73a41b8da3fa8e62df45471e4711ba3b4e492a8d493613d/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6f70656e50726f6a6563743026776f726b7370616365466f6c6465723d526161732d504850)

### 2. Add a new Test Project

[](#2-add-a-new-test-project)

Create a new directory by right clicking on the solution name as shown below:

[![Add a new project in PHPStorm - Step 1](https://camo.githubusercontent.com/5664b8f0449c536cfb997cd21e37454e2b54bb404d3c3bc75aa07368141d1241/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6372656174654469726563746f727926776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/5664b8f0449c536cfb997cd21e37454e2b54bb404d3c3bc75aa07368141d1241/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6372656174654469726563746f727926776f726b7370616365466f6c6465723d526161732d504850)

Name the directory as "test"

[![Add a new project in PHPStorm - Step 2](https://camo.githubusercontent.com/501045141474e2a85ba86569eae25da29d1a3ee13a913daeeef2badc63b2f242/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6e616d654469726563746f727926776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/501045141474e2a85ba86569eae25da29d1a3ee13a913daeeef2badc63b2f242/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6e616d654469726563746f727926776f726b7370616365466f6c6465723d526161732d504850)

Add a PHP file to this project

[![Add a new project in PHPStorm - Step 3](https://camo.githubusercontent.com/b90654d9460a66635159a4697fe00a337037b9a1ab8e8bf0d57e82a1b10696e2/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d63726561746546696c6526776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/b90654d9460a66635159a4697fe00a337037b9a1ab8e8bf0d57e82a1b10696e2/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d63726561746546696c6526776f726b7370616365466f6c6465723d526161732d504850)

Name it "testSDK"

[![Add a new project in PHPStorm - Step 4](https://camo.githubusercontent.com/3bb96494b389e87fee61c6d2c3606b58fc5af69b873145c60a660f411ec75877/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6e616d6546696c6526776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/3bb96494b389e87fee61c6d2c3606b58fc5af69b873145c60a660f411ec75877/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6e616d6546696c6526776f726b7370616365466f6c6465723d526161732d504850)

Depending on your project setup, you might need to include composer's autoloader in your PHP code to enable auto loading of classes.

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

It is important that the path inside require\_once correctly points to the file `autoload.php` inside the vendor directory created during dependency installations.

[![Add a new project in PHPStorm - Step 4](https://camo.githubusercontent.com/47285cb7cfca3fa252cb327420342a497fbf1688952b0e2bb127571724aafe4a/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d70726f6a65637446696c657326776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/47285cb7cfca3fa252cb327420342a497fbf1688952b0e2bb127571724aafe4a/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d70726f6a65637446696c657326776f726b7370616365466f6c6465723d526161732d504850)

After this you can add code to initialize the client library and acquire the instance of a Controller class. Sample code to initialize the client library and using controller methods is given in the subsequent sections.

### 3. Run the Test Project

[](#3-run-the-test-project)

To run your project you must set the Interpreter for your project. Interpreter is the PHP engine installed on your computer.

Open `Settings` from `File` menu.

[![Run Test Project - Step 1](https://camo.githubusercontent.com/768e6224e14969c2cad4c5b0f71deae4d4bb4f405ad9d980cd84c33023762c23/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6f70656e53657474696e677326776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/768e6224e14969c2cad4c5b0f71deae4d4bb4f405ad9d980cd84c33023762c23/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d6f70656e53657474696e677326776f726b7370616365466f6c6465723d526161732d504850)

Select `PHP` from within `Languages & Frameworks`

[![Run Test Project - Step 2](https://camo.githubusercontent.com/8ed0ea65e24f7cbd1b36b96a2043aa8d8735d13bf527e3791d6ea8b2cf3632a9/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d736574496e7465727072657465723026776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/8ed0ea65e24f7cbd1b36b96a2043aa8d8735d13bf527e3791d6ea8b2cf3632a9/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d736574496e7465727072657465723026776f726b7370616365466f6c6465723d526161732d504850)

Browse for Interpreters near the `Interpreter` option and choose your interpreter.

[![Run Test Project - Step 3](https://camo.githubusercontent.com/45df0ad296e4af4bbedd56bdcbe2a06b65fa51519144845eef4c33d7e6bec83f/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d736574496e7465727072657465723126776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/45df0ad296e4af4bbedd56bdcbe2a06b65fa51519144845eef4c33d7e6bec83f/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d736574496e7465727072657465723126776f726b7370616365466f6c6465723d526161732d504850)

Once the interpreter is selected, click `OK`

[![Run Test Project - Step 4](https://camo.githubusercontent.com/0def7dccf8216e22cfa5633cffd76784a7269723afca6b84609634afd4ccb1bc/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d736574496e7465727072657465723226776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/0def7dccf8216e22cfa5633cffd76784a7269723afca6b84609634afd4ccb1bc/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d736574496e7465727072657465723226776f726b7370616365466f6c6465723d526161732d504850)

To run your project, right click on your PHP file inside your Test project and click on `Run`

[![Run Test Project - Step 5](https://camo.githubusercontent.com/a335a668ee9bf0e4c3520882f69bdeb76d51bbabdb148887583616e15d600e87/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d72756e50726f6a65637426776f726b7370616365466f6c6465723d526161732d504850)](https://camo.githubusercontent.com/a335a668ee9bf0e4c3520882f69bdeb76d51bbabdb148887583616e15d600e87/68747470733a2f2f617069646f63732e696f2f696c6c757374726174696f6e2f7068703f737465703d72756e50726f6a65637426776f726b7370616365466f6c6465723d526161732d504850)

How to Test
-----------

[](#how-to-test)

Unit tests in this SDK can be run using PHPUnit.

1. First install the dependencies using composer including the `require-dev` dependencies.
2. Run `vendor\bin\phpunit --verbose` from commandline to execute tests. If you have installed PHPUnit globally, run tests using `phpunit --verbose` instead.

You can change the PHPUnit test configuration in the `phpunit.xml` file.

Initialization
--------------

[](#initialization)

### Authentication

[](#authentication)

In order to setup authentication and initialization of the API client, you need the following information.

ParameterDescriptionplatformNameRaaS v2 API Platform NameplatformKeyRaaS v2 API Platform KeyAPI client can be initialized as following.

```
$platformName = 'QAPlatform2'; // RaaS v2 API Platform Name
$platformKey = 'apYPfT6HNONpDRUj3CLGWYt7gvIHONpDRUYPfT6Hj'; // RaaS v2 API Platform Key

$client = new RaasLib\RaasClient($platformName, $platformKey);
```

Class Reference
===============

[](#class-reference)

List of Controllers
------------------------------------------------------------------

[](#list-of-controllers)

- [OrdersController](#orders_controller)
- [AccountsController](#accounts_controller)
- [CatalogController](#catalog_controller)
- [ExchangeRatesController](#exchange_rates_controller)
- [StatusController](#status_controller)
- [CustomersController](#customers_controller)
- [FundController](#fund_controller)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".OrdersController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) OrdersController
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-orderscontroller)

### Get singleton instance

[](#get-singleton-instance)

The singleton instance of the `OrdersController` class can be accessed from the API Client.

```
$orders = $client->getOrders();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".OrdersController.createOrder")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createOrder

[](#-createorder)

> TODO: Add a method description

```
function createOrder($body)
```

#### Parameters

[](#parameters)

ParameterTagsDescriptionbody`Required`TODO: Add a parameter description#### Example Usage

[](#example-usage)

```
$body = new CreateOrderRequestModel();

$result = $orders->createOrder($body);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".OrdersController.getOrder")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getOrder

[](#-getorder)

> TODO: Add a method description

```
function getOrder($referenceOrderID)
```

#### Parameters

[](#parameters-1)

ParameterTagsDescriptionreferenceOrderID`Required`Reference Order ID#### Example Usage

[](#example-usage-1)

```
$referenceOrderID = 'referenceOrderID';

$result = $orders->getOrder($referenceOrderID);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".OrdersController.getOrders")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getOrders

[](#-getorders)

> TODO: Add a method description

```
function getOrders($options)
```

#### Parameters

[](#parameters-2)

ParameterTagsDescriptionaccountIdentifier`Optional`TODO: Add a parameter descriptioncustomerIdentifier`Optional`TODO: Add a parameter descriptionexternalRefID`Optional`TODO: Add a parameter descriptionstartDate`Optional`TODO: Add a parameter descriptionendDate`Optional`TODO: Add a parameter descriptionelementsPerBlock`Optional`TODO: Add a parameter descriptionpage`Optional`TODO: Add a parameter description#### Example Usage

[](#example-usage-2)

```
$accountIdentifier = 'accountIdentifier';
$collect['accountIdentifier'] = $accountIdentifier;

$customerIdentifier = 'customerIdentifier';
$collect['customerIdentifier'] = $customerIdentifier;

$externalRefID = 'externalRefID';
$collect['externalRefID'] = $externalRefID;

$startDate = date("D M d, Y G:i");
$collect['startDate'] = $startDate;

$endDate = date("D M d, Y G:i");
$collect['endDate'] = $endDate;

$elementsPerBlock = 114;
$collect['elementsPerBlock'] = $elementsPerBlock;

$page = 114;
$collect['page'] = $page;

$result = $orders->getOrders($collect);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".OrdersController.createResendOrder")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createResendOrder

[](#-createresendorder)

> TODO: Add a method description

```
function createResendOrder($referenceOrderID)
```

#### Parameters

[](#parameters-3)

ParameterTagsDescriptionreferenceOrderID`Required`TODO: Add a parameter description#### Example Usage

[](#example-usage-3)

```
$referenceOrderID = 'referenceOrderID';

$result = $orders->createResendOrder($referenceOrderID);
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".AccountsController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) AccountsController
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-accountscontroller)

### Get singleton instance

[](#get-singleton-instance-1)

The singleton instance of the `AccountsController` class can be accessed from the API Client.

```
$accounts = $client->getAccounts();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".AccountsController.getAccount")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getAccount

[](#-getaccount)

> Get an account

```
function getAccount($accountIdentifier)
```

#### Parameters

[](#parameters-4)

ParameterTagsDescriptionaccountIdentifier`Required`Account Identifier#### Example Usage

[](#example-usage-4)

```
$accountIdentifier = 'accountIdentifier';

$result = $accounts->getAccount($accountIdentifier);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".AccountsController.getAccountsByCustomer")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getAccountsByCustomer

[](#-getaccountsbycustomer)

> Gets a list of accounts for a given customer

```
function getAccountsByCustomer($customerIdentifier)
```

#### Parameters

[](#parameters-5)

ParameterTagsDescriptioncustomerIdentifier`Required`Customer Identifier#### Example Usage

[](#example-usage-5)

```
$customerIdentifier = 'customerIdentifier';

$result = $accounts->getAccountsByCustomer($customerIdentifier);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".AccountsController.createAccount")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createAccount

[](#-createaccount)

> Create an account under a given customer

```
function createAccount(
        $customerIdentifier,
        $body)
```

#### Parameters

[](#parameters-6)

ParameterTagsDescriptioncustomerIdentifier`Required`Customer Identifierbody`Required`Request Body#### Example Usage

[](#example-usage-6)

```
$customerIdentifier = 'customerIdentifier';
$body = new CreateAccountRequestModel();

$result = $accounts->createAccount($customerIdentifier, $body);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".AccountsController.getAllAccounts")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getAllAccounts

[](#-getallaccounts)

> Gets all accounts under the platform

```
function getAllAccounts()
```

#### Example Usage

[](#example-usage-7)

```
$result = $accounts->getAllAccounts();
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".CatalogController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) CatalogController
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-catalogcontroller)

### Get singleton instance

[](#get-singleton-instance-2)

The singleton instance of the `CatalogController` class can be accessed from the API Client.

```
$catalog = $client->getCatalog();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".CatalogController.getCatalog")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getCatalog

[](#-getcatalog)

> Get Catalog

```
function getCatalog()
```

#### Example Usage

[](#example-usage-8)

```
$result = $catalog->getCatalog();
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".ExchangeRatesController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) ExchangeRatesController
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-exchangeratescontroller)

### Get singleton instance

[](#get-singleton-instance-3)

The singleton instance of the `ExchangeRatesController` class can be accessed from the API Client.

```
$exchangeRates = $client->getExchangeRates();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".ExchangeRatesController.getExchangeRates")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getExchangeRates

[](#-getexchangerates)

> Retrieve current exchange rates

```
function getExchangeRates()
```

#### Example Usage

[](#example-usage-9)

```
$result = $exchangeRates->getExchangeRates();
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".StatusController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) StatusController
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-statuscontroller)

### Get singleton instance

[](#get-singleton-instance-4)

The singleton instance of the `StatusController` class can be accessed from the API Client.

```
$status = $client->getStatus();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".StatusController.getSystemStatus")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getSystemStatus

[](#-getsystemstatus)

> *Tags:* `Skips Authentication`

> Retrieve system status

```
function getSystemStatus()
```

#### Example Usage

[](#example-usage-10)

```
$result = $status->getSystemStatus();
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".CustomersController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) CustomersController
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-customerscontroller)

### Get singleton instance

[](#get-singleton-instance-5)

The singleton instance of the `CustomersController` class can be accessed from the API Client.

```
$customers = $client->getCustomers();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".CustomersController.getCustomer")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getCustomer

[](#-getcustomer)

> Get a customer

```
function getCustomer($customerIdentifier)
```

#### Parameters

[](#parameters-7)

ParameterTagsDescriptioncustomerIdentifier`Required`Customer Identifier#### Example Usage

[](#example-usage-11)

```
$customerIdentifier = 'customerIdentifier';

$result = $customers->getCustomer($customerIdentifier);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".CustomersController.createCustomer")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createCustomer

[](#-createcustomer)

> Create a new customer

```
function createCustomer($body)
```

#### Parameters

[](#parameters-8)

ParameterTagsDescriptionbody`Required`Request Body#### Example Usage

[](#example-usage-12)

```
$body = new CreateCustomerRequestModel();

$result = $customers->createCustomer($body);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".CustomersController.getAllCustomers")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getAllCustomers

[](#-getallcustomers)

> Gets all customers under the platform

```
function getAllCustomers()
```

#### Example Usage

[](#example-usage-13)

```
$result = $customers->getAllCustomers();
```

[Back to List of Controllers](#list_of_controllers)

[![Class: ](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67 ".FundController")](https://camo.githubusercontent.com/ec8022a6fb768aa7d81b8226237aadf63b8a726efab75a8314b224e54194c885/68747470733a2f2f617069646f63732e696f2f696d672f636c6173732e706e67) FundController
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-fundcontroller)

### Get singleton instance

[](#get-singleton-instance-6)

The singleton instance of the `FundController` class can be accessed from the API Client.

```
$fund = $client->getFund();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".FundController.getCreditCards")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getCreditCards

[](#-getcreditcards)

> List all credit cards registered on this platform

```
function getCreditCards()
```

#### Example Usage

[](#example-usage-14)

```
$result = $fund->getCreditCards();
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".FundController.createCreditCard")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createCreditCard

[](#-createcreditcard)

> Register a new credit card

```
function createCreditCard($body)
```

#### Parameters

[](#parameters-9)

ParameterTagsDescriptionbody`Required`TODO: Add a parameter description#### Example Usage

[](#example-usage-15)

```
$body = new CreateCreditCardRequestModel();

$result = $fund->createCreditCard($body);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".FundController.createUnregisterCreditCard")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createUnregisterCreditCard

[](#-createunregistercreditcard)

> Unregister a credit card

```
function createUnregisterCreditCard($body)
```

#### Parameters

[](#parameters-10)

ParameterTagsDescriptionbody`Required`TODO: Add a parameter description#### Example Usage

[](#example-usage-16)

```
$body = new UnregisterCreditCardRequestModel();

$result = $fund->createUnregisterCreditCard($body);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".FundController.createDeposit")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) createDeposit

[](#-createdeposit)

> Fund an account

```
function createDeposit($body)
```

#### Parameters

[](#parameters-11)

ParameterTagsDescriptionbody`Required`TODO: Add a parameter description#### Example Usage

[](#example-usage-17)

```
$body = new DepositRequestModel();

$result = $fund->createDeposit($body);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".FundController.getDeposit")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getDeposit

[](#-getdeposit)

> Get details for a specific credit card deposit

```
function getDeposit($depositId)
```

#### Parameters

[](#parameters-12)

ParameterTagsDescriptiondepositId`Required`Deposit ID#### Example Usage

[](#example-usage-18)

```
$depositId = 'depositId';

$result = $fund->getDeposit($depositId);
```

### [![Method: ](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67 ".FundController.getCreditCard")](https://camo.githubusercontent.com/501a7bfa57a34ebbde43bfe00d7218a47c0a18eae15acb62480b8716f604ee87/68747470733a2f2f617069646f63732e696f2f696d672f6d6574686f642e706e67) getCreditCard

[](#-getcreditcard)

> Get details for a specific credit card

```
function getCreditCard($token)
```

#### Parameters

[](#parameters-13)

ParameterTagsDescriptiontoken`Required`Card Token#### Example Usage

[](#example-usage-19)

```
$token = 'token';

$result = $fund->getCreditCard($token);
```

[Back to List of Controllers](#list_of_controllers)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~19 days

Total

3

Last Release

2450d ago

Major Versions

0.1 → 1.3.02019-07-22

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apisdkTango Card RaaS v2 API

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/user10-raas/health.svg)

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

###  Alternatives

[bandwidth/sdk

Bandwidth's set of APIs

16948.8k1](/packages/bandwidth-sdk)[messagemedia/messages-sdk

The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.

13390.6k](/packages/messagemedia-messages-sdk)

PHPackages © 2026

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