PHP library to encode and decode JSON

Maintainers

Package info

github.com/fuck-world/phptestsoft

pkg:composer/phptestsoft/json

Statistics

Installs: 148

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0 2016-07-22 09:16 UTC

This package is not auto-updated.

Last update: 2026-03-05 03:04:18 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;

http://www.apache.org/licenses/LICENSE-2.0