Skip to content

maxbook/phprequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Documentation in progress

PHPRequest - Lightweight PHP HTTP client

Super simple to use

Request is designed to be the simplest way possible to make http calls in PHP.

require 'phprequest.php';
$request = new Request();
$res = $request->get('http://www.google.com');
if (!$res['error'] && $res['statuscode'] == 200) {
  echo $res['body'];  // Show the HTML for the Google homepage.
}
else {
  echo $res['error'];
}

Table of contents


About

PHPRequest - Lightweight PHP HTTP client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages