HTTP client
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"
},
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();