Tiny http client

Installs: 1 391

Dependents: 17

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/mcmatters/ticl

v0.4.3 2025-10-03 12:44 UTC

This package is auto-updated.

Last update: 2025-10-03 12:44:24 UTC


README

Installation

composer require mcmatters/ticl

Usage

<?php

declare(strict_types=1);

require 'vendor/autoload.php';

$client = new \McMatters\Ticl\Client();

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();
}

Note

If you want something more customizable, then please use Guzzle