PHP code example of stubbles / peer
1. Go to this page and download the library: Download stubbles/peer 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/ */
stubbles / peer example snippets
$response = $httpUri->connect()
->asUserAgent('Not Mozilla')
->timeout(5)
->usingHeader('X-Money', 'Euro')
->get();
$response = $httpUri->connect()->get();
$response = $httpUri->connect()->head();
$response = $httpUri->connect()->post($postBody);
$response = $httpUri->connect()->put($putBody);
$response = $httpUri->connect()->delete();