cdyun/php-http

php模拟http请求

v1.0.2 2025-09-23 14:13 UTC

This package is auto-updated.

Last update: 2025-09-23 17:50:46 UTC


README

安装

composer require cdyun/php-http

例子

use Cdyun\PhpHttp\HttpEnforcer;

// 请求
HttpEnforcer::request($method, $url, $options = []);

// 请求参数
$options
- headers, body, query, json,form_params 等
- GET传参用query,POST传参用json,PUT传参用form_params