Download the PHP package niobe/ezytoon without Composer
On this page you can find all versions of the php package niobe/ezytoon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download niobe/ezytoon
More information about niobe/ezytoon
Files in niobe/ezytoon
Download niobe/ezytoon
More information about niobe/ezytoon
Files in niobe/ezytoon
Vendor niobe
Package ezytoon
Short Description Ultra-efficient PHP encoder for TOON format. Drastically compress your data structures to minimize token counts and slash costs in AI prompts.
License MIT
Package ezytoon
Short Description Ultra-efficient PHP encoder for TOON format. Drastically compress your data structures to minimize token counts and slash costs in AI prompts.
License MIT
Please rate this library. Is it a good library?
Informations about the package ezytoon
EzyToon
EzyToon is a high-performance PHP 8.4+ encoder for the Token-Oriented Object Notation (TOON) format (spec v3.3). TOON is designed to be more compact than JSON while remaining human-readable, specifically optimizing for tabular data and nested object structures.
Reference: https://toonformat.dev/
Features
- High Compression: Significant byte savings compared to JSON (often >50%).
- Tabular Optimization: Automatically detects uniform collections and encodes them with a header and delimiter-separated rows.
- Key Folding: Optional flattening of single-key nested object chains.
- Strict Adherence: Implements full quoting rules (§7) and spec-compliant normalization (ISO 8601 dates, signed zero, etc.).
- Modern PHP: Leverages PHP 8.4 features like readonly property promotion.
Installation
Via Composer
Manual Installation
If you are not using Composer, download the source and include the file directly:
Usage
Using Composer Autoload (Recommended)
Direct Class Usage
Example Output
Given the sample hiking data, EzyToon produces:
Performance Statistics
- JSON size: 717 bytes
- TOON size: 286 bytes
- Bytes saving: 60.11%
All versions of ezytoon with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.4
The package niobe/ezytoon contains the following files
Loading the files please wait ...