toon-php and laravel-toon
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.
About laravel-toon
jobmetric/laravel-toon
Laravel integration for TOON format: encode/decode JSON data into a token-optimized notation for LLMs.
This is a tool for developers using the Laravel framework who need to prepare JSON data for use with Large Language Models (LLMs). It converts your standard JSON objects into a special, token-optimized TOON format, which reduces the cost and improves the efficiency of interacting with LLMs. Developers can feed their structured data into this tool and get back a compact string that LLMs can process more effectively.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work