PHP code example of turanct / immutio
1. Go to this page and download the library: Download turanct/immutio 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/ */
turanct / immutio example snippets
ser = new Buzz\Browser();
$transport = new Immutio\BuzzTransport($browser);
$client = new Immutio\Client($transport);
$blob = new Immutio\Blob(
'{"ramsamsam": "bla", "foo": "bar", "baz": true, "qux": 1}',
'application/json'
);
$blobId = $client->sendBlob($blob);
var_dump($blobId);
ser = new Buzz\Browser();
$transport = new Immutio\BuzzTransport($browser);
$client = new Immutio\Client($transport);
$blob = $client->retrieveBlob($blobId);