Download the PHP package squareetlabs/laravel-toon without Composer
On this page you can find all versions of the php package squareetlabs/laravel-toon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download squareetlabs/laravel-toon
More information about squareetlabs/laravel-toon
Files in squareetlabs/laravel-toon
Package laravel-toon
Short Description LaravelToon - Token-Optimized Object Notation for Laravel. Compress AI prompts, reduce API costs, and optimize LLM contexts seamlessly. Perfect for ChatGPT, Claude, Gemini, and OpenAI integrations.
License MIT
Informations about the package laravel-toon
LaravelToon
Token-Optimized Object Notation for Laravel Compress your AI prompts, reduce API costs, and optimize LLM contexts seamlessly.
Overview
LaravelToon is a native Laravel package that integrates TOON (Token-Oriented Object Notation) a compact and readable format designed to optimize token usage in LLM contexts.
Why LaravelToon
- Cost Savings: Reduces tokens by 60-70%, saving money on APIs
- Native Integration: Service providers, Facades, Artisan commands ready to use
- Multi-LLM: Supports OpenAI, Claude, Gemini, Mistral with ready-made adapters
- Deep Analysis: Token analysis, compression metrics, cost estimation
- High Performance: Integrated benchmarking and caching optimizations
- Interactive Dashboard: CLI tool to explore and experiment
Quick Start
Installation
Configuration (Optional)
Basic Usage
Documentation
Full Guides
- Quick Start Guide - Get started in 5 minutes
- Installation Guide - Detailed setup and configuration
- Examples - 10+ real-world usage examples
- README - Complete reference
Main Features
1. Compression and Conversion
2. Token Analysis
3. API Cost Calculation
4. LLM API Adapters
Artisan Commands
toon:convert
Converts JSON files to TOON or vice versa.
toon:analyze
Analyzes compression and efficiency.
Shows:
- JSON vs TOON size
- Estimated tokens
- Reduction percentage
- Recommendations
toon:benchmark
Runs performance and cost estimation benchmarks.
Shows:
- Encoding/decoding time
- Size comparison
- Cost estimation
toon:dashboard
Interactive dashboard to explore LaravelToon.
Allows:
- Convert JSON TOON
- Analyze compression
- Estimate costs
- View model prices
� Available Helpers
Integration with Eloquent Models
Validation
Advanced Configuration
The config/laravel-toon.php file allows you to configure:
Use Cases
1. ChatGPT Prompt Optimization
2. RAG with Optimized Context
3. Cost Monitoring
Testing
Environment Variables
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a branch for your feature (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
About
LaravelToon is developed and maintained by SquareetLabs
Support
For support, create an issue in the repository or contact [email protected]
LaravelToon v1.0.0 - November 14, 2025
All versions of laravel-toon with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0

