saci/req

以更简单的方式处理HTTP请求和XPATH查询

1.0.0 2015-11-15 01:18 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:47:36 UTC


README

alt tag

缩略图/req

以更简单的方式处理HTTP请求和XPATH查询

##安装

将其添加到当前的 composer.json 文件中

在 composer.json 的 require 部分添加以下行

"saci/req": "*"

并使用 autoload.php 来包含类

##示例用法

require 'vendor/autoload.php'

$req=New \Saci\Req('http://www.google.com');

$req->query("//a[@class='gbgt']");

###文档

####输入参数

#####method 描述: 任何HTTP方法:GET、POST、PUT、DELETE

类型: 字符串

默认值: GET

#####fields 描述: 用于POST请求的字段

类型: 字符串或数组

默认值: GET