piedweb / rison
A PHP encoder and decoder for Rison, the compact JSON-like data format optimized for URIs.
Installs: 1 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/piedweb/rison
Requires
- php: >=8.4
- dev-main
- 0.1.882
- 0.1.881
- 0.1.880
- 0.1.879
- 0.1.878
- 0.1.877
- 0.1.876
- 0.1.875
- 0.1.874
- 0.1.873
- 0.1.872
- 0.1.871
- 0.1.870
- 0.1.869
- 0.1.868
- 0.1.867
- 0.1.866
- 0.1.865
- 0.1.864
- 0.1.863
- 0.1.862
- 0.1.861
- 0.1.860
- 0.1.859
- 0.1.858
- 0.1.857
- 0.1.856
- 0.1.855
- 0.1.854
- 0.1.853
- 0.1.852
- 0.1.851
- 0.1.850
- 0.1.849
- 0.1.848
- 0.1.847
- 0.1.846
- 0.1.845
This package is auto-updated.
Last update: 2025-12-20 13:30:31 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.