https://github.com/mimmi20/json-class
PHP JSON encoding and decoding wrapped in a class that throws exceptions on failure
https://github.com/mimmi20/json-class
json json-parser php74
Last synced: 9 months ago
JSON representation
PHP JSON encoding and decoding wrapped in a class that throws exceptions on failure
- Host: GitHub
- URL: https://github.com/mimmi20/json-class
- Owner: mimmi20
- License: mit
- Archived: true
- Created: 2018-09-09T07:12:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-28T06:00:25.000Z (over 4 years ago)
- Last Synced: 2025-09-20T00:34:20.736Z (10 months ago)
- Topics: json, json-parser, php74
- Language: PHP
- Homepage:
- Size: 239 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# json-class
This class add a class wrapper around [daverandom/exceptional-json](https://github.com/DaveRandom/ExceptionalJSON) to make mocking easier.
[](https://packagist.org/packages/mimmi20/json-class)
[](https://packagist.org/packages/mimmi20/json-class)
[](https://packagist.org/packages/mimmi20/json-class)
## Code Status
[](https://codecov.io/gh/mimmi20/json-class)
[](http://isitmaintained.com/project/mimmi20/json-class "Average time to resolve an issue")
[](http://isitmaintained.com/project/mimmi20/json-class "Percentage of issues still open")
## Requirements
This library requires PHP 7.4+.
## Installation
Run the command below to install via Composer
```shell
composer require mimmi20/json-class
```
## Usage
```php
$json = new \JsonClass\Json();
$decoded = $json->decode();
```
See also [daverandom/exceptional-json's documentation](https://raw.githubusercontent.com/DaveRandom/ExceptionalJSON/master/readme.md)
## Issues and feature requests
Please report your issues and ask for new features on the GitHub Issue Tracker
at https://github.com/mimmi20/json-class/issues