Details
Easy curl
Installation
Github:
git clone https://github.com/Mateodioev/request
cd request
composer install
Composer:
composer require mateodioev/request
Usage
require 'path/to/vendor/autoload.php';
use Mateodioev\Request\Request;
# GET
$res = Request::Get('https://httpbin.org/get');
# POST
$res = Request::Post('https://httpbin.org/post');
# Format
$method = 'GET'; // GET, POST, PUT, DELETE, etc.
$res = Request::$method($url, $headers_array, $postfield_data);
# Methods
Request::Init();
Request::AddOpts();
Request::AddOpt();
Request::addHeaders();
Request::addBody();
Request::setMethod();
Request::Close();
Request::Run();
Request::Create();
Request::Download();
|
Name: |
PHP HTTP Request Library |
Base name: |
http-request-library |
Description: |
Compose and send HTTP requests to given URLs |
Version: |
- |
PHP version: |
5 |
License: |
MIT/X Consortium License |
All time users: |
87 users |
All time rank: |
9889 |
Week users: |
0 users |
Week rank: |
171  |
|
|
Not yet rated by the users |
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
|
Files |
|