PHP library to encode and decode JSON

Installs: 148

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/phptestsoft/json

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

This package is not auto-updated.

Last update: 2025-10-02 00:56:13 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