Repository navigation
v0.1.0 – Initial release
🎉 First release of TOON PHP Lite
This is the initial public release of TOON PHP Lite, a lightweight PHP library for encoding and decoding TOON (Token-Oriented Object Notation).
✨ Features
-
ToonLite\Toon::encode(mixed $data): string- Encodes:
- associative arrays →
key: value - primitive lists →
key[n]: a,b,c - uniform list of objects →
key[n]{col1,col2}:tabular format - mixed/other lists → list format
- associative arrays →
- Encodes:
-
ToonLite\Toon::decode(string $toon): mixed- Parses:
key: valuekey[n]: a,b,ckey[n]{a,b,c}:+ tabular rowskey[n]:with- valueitems
- Parses:
-
Zero runtime dependencies
-
Tested with PHPUnit
-
GitHub Actions CI for PHP 8.1, 8.2, 8.3
🔧 Requirements
- PHP
>= 8.1
📦 Install
composer require manoj/toon-php-lite