Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Toon Laravel Package

squareetlabs/laravel-toon

View on GitHub
Deep Wiki
Context7
1.0.0

Added

  • Initial release of LaravelToon
  • Full TOON (Token-Oriented Object Notation) encoding and decoding
  • Service layer: ToonService, TokenAnalyzer, CompressionMetrics, CostCalculator
  • Adapters for major LLM providers:
    • OpenAI (GPT-4o, GPT-4, GPT-3.5-turbo)
    • Anthropic/Claude (Claude 3 series)
    • Google Gemini (Gemini Pro)
    • Mistral AI
  • Artisan commands:
    • toon:convert - Convert JSON to TOON and vice versa
    • toon:analyze - Analyze compression efficiency
    • toon:benchmark - Performance and cost benchmarking
    • toon:dashboard - Interactive dashboard for exploration
  • Comprehensive helper functions for easy integration
  • HasToonEncoding trait for Eloquent models
  • CompressResponse middleware for automatic response compression
  • ValidToonFormat validation rule
  • Token estimation and analysis tools
  • Cost calculation for multiple LLM models
  • Budget analysis and forecasting
  • Support for Laravel 9.0 to 12.x
  • Support for PHP 8.1+
  • Configuration file for customization
  • Extensive documentation and examples
  • Unit and feature tests

Features

  • Compression Efficiency: Reduces data size by 60-70% compared to JSON
  • Token Optimization: Significant token savings for LLM APIs
  • Multiple Format Options: Readable, Compact, and Tabular formats
  • Cost Estimation: Calculate and compare API costs across models
  • Performance Benchmarking: Built-in performance testing tools
  • Integration-Ready: Works seamlessly with Laravel applications
  • AI-First Design: Optimized for use with LLM contexts
  • Caching Support: Token estimates and cost calculations caching
  • Developer-Friendly: Extensive helpers, traits, and middleware

Documentation

  • README with quick start guide
  • Installation guide with troubleshooting
  • Comprehensive examples including real-world use cases
  • API documentation via PHPDocs
  • Configuration guide
  • Changelog

Version
Version PHP Laravel Status
1.0.x 8.1+ 9-12 Active

License

LaravelToon is open-sourced software licensed under the MIT license.

Contributing

We welcome contributions!

About

LaravelToon is developed and maintained by Squareetlabs


For more information, see README.md and INSTALLATION.md.


LaravelToon v1.0.0 - November 14, 2025

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope