Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fefas/jsoncoder
Json as a class
https://github.com/fefas/jsoncoder
Last synced: about 1 month ago
JSON representation
Json as a class
- Host: GitHub
- URL: https://github.com/fefas/jsoncoder
- Owner: fefas
- License: mit
- Created: 2018-01-11T23:51:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-13T22:50:26.000Z (about 7 years ago)
- Last Synced: 2024-12-07T01:47:48.386Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://img.shields.io/travis/fefas/jsoncoder/master.svg?style=flat-square)](https://travis-ci.org/fefas/jsoncoder)
[![Build Status](https://img.shields.io/coveralls/github/fefas/jsoncoder.svg?style=flat-square)](https://coveralls.io/github/fefas/jsoncoder)[![Latest Stable Version](https://poser.pugx.org/fefas/jsoncoder/v/stable?format=flat-square)](https://packagist.org/packages/fefas/jsoncoder)
[![Total Downloads](https://poser.pugx.org/fefas/jsoncoder/downloads?format=flat-square)](https://packagist.org/packages/fefas/jsoncoder)
[![Latest Unstable Version](https://poser.pugx.org/fefas/jsoncoder/v/unstable?format=flat-square)](https://packagist.org/packages/fefas/jsoncoder)
[![License](https://poser.pugx.org/fefas/jsoncoder/license?format=flat-square)](LICENSE)
[![composer.lock](https://poser.pugx.org/fefas/jsoncoder/composerlock?format=flat-square)](https://packagist.org/packages/fefas/jsoncoder)# 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](https://getcomposer.org/):
```shell
$ composer require fefas/jsoncoder
```## Usage
```php
'anotherValue']); // from PHP valuesecho $json1; // {"field":"value"}
echo $json2; // {"field":"anotherValue"}$json1->decode(); // ['field' => 'value']
$json2->decode(); // ['field' => 'anotherValue']$json1->isEqualTo($json2); // false
```