Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcmatters/ticl


https://github.com/mcmatters/ticl

curl http-client

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

## Tiny Http Client

### Installation

```bash
composer require mcmatters/ticl
```

### Usage

```php
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](https://github.com/guzzle/guzzle)