| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 89 | All time: 9,977 This week: 673 | ||||
| Version | License | PHP version | Categories | |||
| http-request-library 1.0 | MIT/X Consortium ... | 5 | HTTP, PHP 5 |
| Description | Author | |
This package can compose and send HTTP requests to given URLs. |
Github:
git clone https://github.com/Mateodioev/request
cd request
composer install
Composer:
composer require mateodioev/request
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();
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| http-request-library-2022-03-13.zip 2KB | |
| http-request-library-2022-03-13.tar.gz 2KB | |
| Install with Composer |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.