PHP code example of mvaliolahi / http

1. Go to this page and download the library: Download mvaliolahi/http library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mvaliolahi / http example snippets


    $client =  new \Mvaliolahi\Http\Curl();

    public function get($url, $parameters = null, $headers = [], $options = []);
    public function post($uri, $parameters, $headers = [], $options = []);
    public function put($uri, $parameters, $headers = [], $options = []);
    public function patch($url, $parameters, $headers = [], $options = []);
    public function delete($uri, $parameters, $headers = [], $options = []);
    
    public function errors();
    public function code();
    public function client($client = null);
    public function disableSSL($flag)
    public function originalResponse()