sinevia / php-library-http
PHP Library HTTP
v1.3.0
2018-08-21 03:19 UTC
This package is auto-updated.
Last update: 2024-12-18 07:44:38 UTC
README
HTTP client
Background
Installation
Install via Composer
composer require sinevia/php-library-http
Or add the following to your composer file:
"require": { "sinevia/php-library-http": "1.3.0" },
Usage
The lines bellow create an HTTP Client:
$http = new \Sinevia\HttpClent("http://localhost/"); $http->setPath('/yourpath/'); $http->post(array('user'=>'UN','pass'=>'PW'); // Data to be sent as array echo $http->getResponseBody();