1. Go to this page and download the library: Download wlib/http-client 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/ */
wlib / http-client example snippets
public static function get(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function post(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function put(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function patch(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function delete(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function head(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function options(string $sUrl, array|string $mData = [], array $aMore = []): array;
public static function download(string $sUrl, mixed $mFile, array|string $mData = [], array $aMore = []): array;
public static function request(string $sUrl, string $sMethod = 'get', array|string $mData = [], array $aMore = []): array;
public static function multipartBuildQuery(array $aFields, string $sBoundary = ''): array;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.