PHP code example of qlimix / encoding-json
1. Go to this page and download the library: Download qlimix/encoding-json 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/ */
qlimix / encoding-json example snippets
use Qlimix/Encoding/Encode/JsonEncode;
use Qlimix/Encoding/Decode/JsonDecode;
$encode = new JsonEncode();
$decode = new JsonDecode();
$value = ['foo' => 'bar', 'number' => 1];
$encoded = $encode->encode($value);
$decode = $decode->decode($encoded);