PHP code example of borsch / http-message-factories
1. Go to this page and download the library: Download borsch/http-message-factories 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/ */
borsch / http-message-factories example snippets
use Borsch\Http\Request;
use Borsch\Http\Factory
$request = new Request(
'GET',
'https://github.com/debuss/borch-http-message'
);
// OR
$request = Factory::getInstance()->createRequest(
'GET',
'https://github.com/debuss/borch-http-message'
);