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.
115 stars.
Use this if you are a PHP developer building applications that send structured data to LLMs and want to reduce token usage and API costs.
Not ideal if your application doesn't interact with LLMs or if you are not using PHP.
Stars
115
Forks
8
Language
PHP
License
MIT
Category
Last pushed
Dec 06, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/HelgeSverre/toon-php"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware JSON for LLM...
dweve-ai/hedl
Token-efficient data serialization for LLM/AI. 50% fewer tokens than JSON, 93% better...
tonl-dev/tonl
TONL (Token-Optimized Notation Language)
toon-format/toon-java
☕ Community-driven Java implementation of TOON
ISON-format/ison
🔥 🔥 Alternative to JSON 🔥 🔥