2017 © Pedro Peláez
 

library jsoncoder

Json encoder and decoder as a class

image

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

The README.md

Build Status Build Status, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock, (*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

The Versions

13/01 2018

dev-master

9999999-dev

Json encoder and decoder as a class

  Sources   Download

MIT

The Requires

  • php >=7.2

 

The Development Requires

json json decoder json encoder

13/01 2018

v0.2.0

0.2.0.0

Json encoder and decoder as a class

  Sources   Download

MIT

The Requires

  • php >=7.2

 

The Development Requires

json json decoder json encoder

12/01 2018

v0.1.0

0.1.0.0

Json encoder and decoder as a class

  Sources   Download

MIT

The Requires

  • php >=7.2

 

The Development Requires

json json decoder json encoder