library jsoncoder
Json encoder and decoder as a class
fefas/jsoncoder
Json encoder and decoder as a class
- Saturday, January 13, 2018
- by fefas
- Repository
- 1 Watchers
- 0 Stars
- 35 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
, (*1)
, (*2)
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., (*3)
Installation
Install it using Composer:, (*4)
$ 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
dev-master
9999999-dev
Json encoder and decoder as a class
Sources
Download
MIT
The Requires
The Development Requires
json
json decoder
json encoder
v0.2.0
0.2.0.0
Json encoder and decoder as a class
Sources
Download
MIT
The Requires
The Development Requires
json
json decoder
json encoder
v0.1.0
0.1.0.0
Json encoder and decoder as a class
Sources
Download
MIT
The Requires
The Development Requires
json
json decoder
json encoder