PHP code example of toolkit / data-parser
1. Go to this page and download the library: Download toolkit/data-parser 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/ */
toolkit / data-parser example snippets
$parser = new SwooleParser();
// $parser = new JsonParser();
// $parser = new PhpParser();
// $parser = new MsgPackParser();
// encode
$encoded = $parser->encode($data);
// decode
$decoded = $parser->encode($encoded);