yoerioptr / tabt-api-client
Helper library for the TabT API by Frenoy. For more information visit 'http://api.frenoy.net/'
v2.0.7
2022-07-29 10:14 UTC
Requires
- php: >=7.4
- ext-soap: *
- composer/composer: ^2.1.9
Requires (Dev)
- monolog/monolog: ^2.3
- phpro/grumphp: ^1.7
- phpstan/phpstan: ^1.4
- squizlabs/php_codesniffer: ^3.4
- symfony/var-dumper: ^6.0
README
The TabT API Client is a helper library for Frenoy's TabT API
Setup
Basic setup to get you started using the client.
First of all, install the package using Composer
composer require yoerioptr/tabt-api-client
Instantiate the TabT Api Client as shown below
use Yoerioptr\TabtApiClient\Client\Client; use Yoerioptr\TabtApiClient\Entries\CredentialsType; use Yoerioptr\TabtApiClient\Tabt; // Instantiate the client $client = new Client(); // Optionally you can provide your credentials $credentials = new CredentialsType('username', 'password'); $client->setCredentials($credentials); // Instantiate the TabT Api Client $tabt = new Tabt($client);
Making Requests
Executing requests makes use of repositories, which can easily be accessed from the TabT helper class.
$testResponse = $tabt->test()->info();
All usable requests can be found here