laravel-toon and toon-php
The two projects are ecosystem siblings, where `mischasigtermans/laravel-toon` is a Laravel-specific wrapper for encoding data using the TOON format, and `HelgeSverre/toon-php` is the underlying, general-purpose PHP implementation of the TOON serialization format.
About laravel-toon
mischasigtermans/laravel-toon
TOON encoding for Laravel. Encode data for AI/LLMs with ~50% fewer tokens than JSON.
This project helps developers working with Large Language Models (LLMs) to optimize the data they send to these models. It takes structured data, like user profiles or database records, and converts it into a highly compact TOON format. The result is significantly smaller data that takes up less of the LLM's context window, allowing more information to be processed or reducing API costs.
About toon-php
HelgeSverre/toon-php
Token-Oriented Object Notation - A compact data format for reducing token consumption when sending structured data to LLMs (PHP implementation)
When working with Large Language Models (LLMs) in PHP, this tool helps you convert your structured PHP data (like arrays or objects) into a compact text format called TOON. This format uses fewer tokens than standard JSON, which can lower your LLM API costs and allow you to send more information within the same context window. It's designed for PHP developers or engineers building applications that interact with LLMs.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work