saci / req
HTTP requests and XPATH queries in a simpler way
1.0.0
2015-11-15 01:18 UTC
Requires
- php: >=5.4.0
- ext-curl: *
- ext-dom: *
This package is not auto-updated.
Last update: 2024-10-26 19:21:26 UTC
README
saci/req
HTTP requests and XPATH queries in a simpler way
##Install
Including to your current composer.json
Add this line into require in your composer.json:
"saci/req": "*"
and use autoload.php to include the classes
##Example usage
require 'vendor/autoload.php' $req=New \Saci\Req('http://www.google.com'); $req->query("//a[@class='gbgt']");
###Documentation
####Input Parameters
#####method Description: Any HTTP Method: GET, POST, PUT, DELETE
Type: String
Default: GET
#####fields Description: Fields for Post Requests
Type: String or Array
Default: GET