anourvalar/http-client

1.10.0 2024-10-06 11:31 UTC

This package is auto-updated.

Last update: 2024-11-06 11:42:06 UTC


README

Installation

composer require anourvalar/http-client

Usage

API Client (JSON)

$http = new \AnourValar\HttpClient\Http;

$http->asJsonClient()->authToken('...')->body(['foo' => 'bar'])->post('https://google')->dump();

Web Browser (Robot)

$http = new \AnourValar\HttpClient\Http;

$http->asBrowser()->referer('https://google.com')->get('https://google.com/?start=10')->dump();