https://github.com/fefas/jsoncoder
Json as a class
https://github.com/fefas/jsoncoder
Last synced: 8 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-13T22:50:26.000Z (almost 8 years ago)
- Last Synced: 2025-05-16T14:12:35.942Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/fefas/jsoncoder)
[](https://coveralls.io/github/fefas/jsoncoder)
[](https://packagist.org/packages/fefas/jsoncoder)
[](https://packagist.org/packages/fefas/jsoncoder)
[](https://packagist.org/packages/fefas/jsoncoder)
[](LICENSE)
[](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 values
echo $json1; // {"field":"value"}
echo $json2; // {"field":"anotherValue"}
$json1->decode(); // ['field' => 'value']
$json2->decode(); // ['field' => 'anotherValue']
$json1->isEqualTo($json2); // false
```