1. Go to this page and download the library: Download kigkonsult/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/ */
kigkonsult / http example snippets
php
namespace Kigkonsult\Http;
the url (file) resource
* for missning scheme 'http' is used
* @param array $urlArgs opt, *( urlArgKey => value )
* if not empty, appended to url
* @param array $curlOpts opt, *( curlOptConstant => value )
* overwrites default (below) key value if key exists
* The keys should be valid curl_setopt() constants or their integer equivalents.
* @param int $sizeDownload hold (byte-)size of downloaded resource
* @param float $time hold operation exec time (in seconds)
* @return string
* @throws InvalidArgumentException
* @throws RuntimeException
*/
$result = UrlRsrc::getContent( 'example.com' );
php
composer
php
use Kigkonsult\Http;
...
php
use Kigkonsult\Http\UrlRsrc;
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.