piedweb / rison
A PHP encoder and decoder for Rison, the compact JSON-like data format optimized for URIs.
Installs: 822
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/piedweb/rison
Requires
- php: >=8.3
This package is auto-updated.
Last update: 2025-10-07 08:04:59 UTC
README
PHP Rison encoder - decoder
Rison is a compact data format optimized for URIs, a slight variation of JSON. This is a port from JS rison, forked from Marmelatze
Install
Via Packagist
$ composer require piedweb/rison
Usage
use \PiedWeb\Rison\...;
About 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 :
Contributing
Please see contributing
Credits
- Original version by Marmelatze
- Forked and updated to modern PHP by Robin Delattre (Pied Web)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.