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

Toon Laravel Package

sbsaga/toon

View on GitHub
Deep Wiki
Context7

CLI Conversion Guide

toon:convert supports both legacy usage and newer explicit direction/options.

Command

php artisan toon:convert {file?} [options]

Direction Resolution (Precedence)

The command resolves encode/decode direction in this order:

  1. --decode or --encode (highest priority)
  2. --from and --to
  3. file extension autodetect (.json -> encode, .toon -> decode)
  4. fallback to decode (legacy-compatible default)

New Options

  • --from=auto|json|toon
  • --to=auto|json|toon
  • --stats (writes metrics JSON to STDERR)
  • --delimiter=comma|pipe|tab|<char>
  • --mode=legacy|modern
  • --strict (strict table validation when decoding)

Common Examples

Encode JSON file to TOON:

php artisan toon:convert storage/app/payload.json --encode

Decode TOON to pretty JSON:

php artisan toon:convert storage/app/payload.toon --decode --pretty

Use explicit direction without encode/decode flags:

php artisan toon:convert storage/app/payload.data --from=json --to=toon

Override mode and delimiter for one command only:

php artisan toon:convert storage/app/payload.json --encode --mode=modern --delimiter=pipe

Write stats to STDERR while keeping payload on STDOUT:

php artisan toon:convert storage/app/payload.json --encode --stats

Compatibility Notes

  • Existing scripts using only --encode or --decode remain valid.
  • No default behavior changes were introduced for direction fallback.
  • Runtime config overrides via CLI are command-local and do not require editing config/toon.php.
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.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle