onigae / test-api
PHP Test API
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/onigae/test-api
Requires
- guzzlehttp/guzzle: >=7
This package is not auto-updated.
Last update: 2025-10-07 12:25:22 UTC
README
composer require onigae/test-api
Example Usage:
<?php
use Onigae\TestApi\DebitCard\ClientApi;
use Onigae\TestApi\DebitCard\Config;
require_once './vendor/autoload.php';
$config = new Config(
[
'base_uri' => 'https://google.com/',
'timeout' => 60,
'headers' => [
'AUTH-KEY' => 'AUTH-KEY-STRING',
'Content-Type' => 'application/json',
'Accept' => 'application/json'
]
]
);
$clientApi = new ClientApi($config);
$card = $test->createCard(
[
'first_name',
'last_name',
'address',
'city',
'country_id',
'phone',
'currency',
'balance',
]
);
$card_pin = $clientApi->getPin(15);
$card_pin = $card->getPin();