Skip to content

v0.1.0 – Initial release

Choose a tag to compare

@manojrammurthy manojrammurthy released this 13 Nov 12:33
· 17 commits to main since this 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
  • ToonLite\Toon::decode(string $toon): mixed

    • Parses:
      • key: value
      • key[n]: a,b,c
      • key[n]{a,b,c}: + tabular rows
      • key[n]: with - value items
  • 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