PHP code example of kittinan / php-http

1. Go to this page and download the library: Download kittinan/php-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/ */

    

kittinan / php-http example snippets


$http = new \KS\HTTP\HTTP();
$url = 'https://github.com/kittinan/php-http';
$html = $http->get($url);
echo $html;