walkboy / tangocard-raas-php
Unofficial Tango Card RaaS API
Installs: 1 421
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=8.0.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- apimatic/jsonmapper: ~1.3.0
- mashape/unirest-php: ~3.0.1
Requires (Dev)
- phpunit/phpunit: 4.8.*
- squizlabs/php_codesniffer: ^2.7
README
This repository is maintained version of raas-v2-sdk-php
for Tango Card RaaS which was deprecated and removed by them,
but still maybe usefull for some projects.
Installation
composer require walkboy/tangocard-raas-php
Requirements
PHP 8 support >= 3.0.0 PHP 7 support <= 2.4.0
How To Use
For using this SDK do the following:
-
Use Composer to install the dependencies. See the section "How To Build".
-
See that you have configured your SDK correctly. See the section "How To Configure".
-
Depending on your project setup, you might need to include composer's autoloader in your PHP code to enable autoloading of classes.
require_once "vendor/autoload.php";
-
Import the SDK client in your project:
use RaasLib\RaasClient;
-
Instantiate the client. After this, you can now get the controllers and call the respective methods:
Configuration::$environment = 'sandbox'; // "production" $client = new RaasClient(); $controller = $client->getStatus();
How To Test
Unit tests in this SDK can be run using PHPUnit.
- First install the dependencies using composer including the
require-dev
dependencies. - Run
vendor\bin\phpunit --verbose
from commandline to execute tests. If you have installed PHPUnit globally, run tests usingphpunit --verbose
instead.
You can change the PHPUnit test configuration in the phpunit.xml
file.