liesauer/ql-plugin-simplehttpclient

QueryList Plugin - SimpleHttpClient

v4.0.1 2017-10-03 04:34 UTC

This package is auto-updated.

Last update: 2024-04-05 17:50:25 UTC


README

SimpleHttpClient

Installation

composer require liesauer/ql-plugin-simplehttpclient

Bind

  • array quickGet ($url, $header = null, $cookie = '', $data = '', $options = null)
  • array quickPost ($url, $header = null, $cookie = '', $data = '', $options = null)

Usage

use liesauer\QLPlugin\SimpleHttpClient;
use QL\QueryList;

require_once __DIR__ . '/vendor/autoload.php';

$ql = QueryList::getInstance();
$ql->use(SimpleHttpClient::class);

$response = $ql->quickGet('http://www.domain.com/');

var_dump($response);