PHP code example of php-http / random-host-plugin
1. Go to this page and download the library: Download php-http/random-host-plugin 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/ */
php-http / random-host-plugin example snippets
new \Http\Client\Common\Plugin\SetRandomHostPlugin(
$psr17Factory,
['hosts' => ['https://host1.example','https://host2.example']],
);