HelgeSverre/toon-php

Token-Oriented Object Notation - A compact data format for reducing token consumption when sending structured data to LLMs (PHP implementation)

39
/ 100
Emerging

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.

LLM application development API cost optimization data serialization prompt engineering PHP development
No Package No Dependents
Maintenance 6 / 25
Adoption 10 / 25
Maturity 13 / 25
Community 10 / 25

How are scores calculated?

Stars

115

Forks

8

Language

PHP

License

MIT

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.