phptestsoft / json
PHP library to encode and decode JSON
v1.0
2016-07-22 09:16 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-10-02 19:29:51 UTC
README
API
To use the library, see the example below:
<?php
require_once 'vendor/autoload.php';
$data = [
'a' => 'test',
'b' => 'test'
];
$jsondata = \phptestsoft\Json::encode($data);
print_r($jsondata);
$data2 = \phptestsoft\Json::decode($jsondata);
print_r($data2);
License
Licensed under the Apache License, Version 2.0;