Rison is a compact data format optimized for URIs, a slight variation of JSON. This is a port from JS rison, forked from Marmelatze
Via Packagist
$ composer require piedweb/rison
use \PiedWeb\Rison\...;
JSON:
{"a":0,"b":"foo","c":"23skidoo"}
URI-encoded JSON:
%7B%22a%22:0,%22b%22%3A%22foo%22%2C%22c%22%3A%2223skidoo%22%7D
Rison:
(a:0,b:foo,c:'23skidoo')
URI-encoded Rison:
(a:0,b:foo,c:'23skidoo')
Learn more about Rison :
Please see contributing
- Original version by Marmelatze
- Forked and updated to modern PHP by Robin Delattre (Pied Web)
- All Contributors
The MIT License (MIT). Please see License File for more information.