thetribe / json
json_encode/json_decode wrapper
Installs: 4 457
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: ^5.5|^7.0
- ext-json: *
This package is not auto-updated.
Last update: 2025-03-02 06:13:19 UTC
README
thetribe/json
is a small wrapper around the json_*
fonctions that does two things:
- Convert errors to exceptions
- Normalize parameters
Install
Install thetribe/json
using Composer.
composer require thetribe/json
Usage
Decoding
<?php use function TheTribe\JSON\decode; $value = decode($json, $options, $depth);
Encoding
<?php use function TheTribe\JSON\encode; $json = encode($value, $options, $depth);