varzer/curl-http

The Varzer curl-http

Maintainers

Package info

github.com/varzer/curl-http

pkg:composer/varzer/curl-http

Statistics

Installs: 54

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.2 2021-06-10 07:12 UTC

This package is auto-updated.

Last update: 2026-03-10 16:39:31 UTC


README

a http require package
use varzer\service\Http;

GET:
$url = 'https://api.about.xx.cn/user?id=100';
$jsonObject = Http::requestJSON($url);

POST:
$url = 'https://api.about.xx.cn/user';
$params = [
    "name"=>"varzer",
    "pwd"=>"***",
    "xx"=>"xx",
];

$jsonObject = Http:requestJSON($url,$params,'POST');