PHP code example of varion / transport-contracts
1. Go to this page and download the library: Download varion/transport-contracts 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/ */
varion / transport-contracts example snippets
declare(strict_types=1);
use Varion\Transport\Transport;
use Varion\Transport\Driver\StreamDriver;
$transport = new Transport(new StreamDriver());
$conn = $transport->connect('tcp://example.com:443');