PHP code example of wrossmann / json_stream
1. Go to this page and download the library: Download wrossmann/json_stream 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/ */
wrossmann / json_stream example snippets
rossmann\json_stream\JsonStream;
$js = new JsonStream();
$js->encode('foo');
$handle = fopen('zlib://foo.json.gz', 'wb');
$js = new JsonStream($handle, JSON_UNESCAPED_UNICODE);
$js->encode('foo');