fefas/jsoncoder
最新稳定版本:v0.2.0
Composer 安装命令:
composer require fefas/jsoncoder
包简介
Json encoder and decoder as a class
README 文档
README
Jsoncoder
Jsoncode is the result of I claiming by a way to encode, decode and whatever JSON using classes with error handling intead of awful functions.
Installation
Install it using Composer:
$ composer require fefas/jsoncoder
Usage
<?php use Fefas\Jsoncoder\Json; $json1 = Json::createFromString('{"field":"value"}'); // from a json string $json2 = Json::create(['field' => 'anotherValue']); // from PHP values echo $json1; // {"field":"value"} echo $json2; // {"field":"anotherValue"} $json1->decode(); // ['field' => 'value'] $json2->decode(); // ['field' => 'anotherValue'] $json1->isEqualTo($json2); // false
统计信息
- 总下载量: 1.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-12