liesauer/ql-plugin-simplehttpclient

QueryList 插件 - SimpleHttpClient

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

This package is auto-updated.

Last update: 2024-09-05 18:46:28 UTC


README

SimpleHttpClient

安装

composer require liesauer/ql-plugin-simplehttpclient

绑定

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

用法

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