PHP code example of mcmatters / ticl
1. Go to this page and download the library: Download mcmatters/ticl library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mcmatters / ticl example snippets
declare(strict_types=1);
lient();
try {
$response = $client->get('http://example.com/api/user?token=test');
$user = $response->json();
} catch (\McMatters\Ticl\Exceptions\RequestException $e) {
$error = $e->asJson();
} catch (\Throwable $e) {
$error = $e->getMessage();
}