sinevia/php-library-http

v1.3.0 2018-08-21 03:19 UTC

This package is auto-updated.

Last update: 2024-10-18 07:22:10 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();