Weave 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
Agents
helgesverre/toon
claude-code
cursor
compression
serialization
format
optimization
laravel
prompt
token
ai
openai
gpt
llm
claude
anthropic
cost-reduction

Quick reference for AI coding agents working on TOON PHP.

Install
php artisan boost:add-skill helgesverre/toon

Save this content to: AGENTS.md

# AGENTS.md

Quick reference for AI coding agents working on TOON PHP.

## Commands

- **Run all tests**: `just test` or `vendor/bin/phpunit`
- **Run single test file**: `vendor/bin/phpunit tests/PrimitivesTest.php`
- **Run single test method**: `vendor/bin/phpunit --filter testEncodesStringsWithoutQuotes`
- **Test with coverage**: `just test-coverage`
- **Format code**: `just fix` (Laravel Pint)
- **Static analysis**: `just analyse` (PHPStan level 9)
- **Dev cycle**: `just dev` (format + test)
- **Pre-PR**: `just pr` (format + analyse + test)

## Architecture

- **Main entry**: `src/Toon.php` - static `encode()` and `decode()` methods
- **Encoding pipeline**: Normalize → Encoders → Primitives → LineWriter
- **Decoding pipeline**: Decoder classes in `src/Decoder/`
- **No runtime dependencies** - only dev deps (PHPUnit, PHPStan, Pint)
- **Spec compliance**: All changes MUST conform to `docs/SPEC.md` (TOON v3.3)

## Code Style

- **PHP 8.1+** with `declare(strict_types=1);` in all files
- **Type safety**: Use `assert()` after type checks, PHPStan level 9
- **Namespace**: `HelgeSverre\Toon`
- **Tests go in**: `tests/` only (never create test files elsewhere)
- **Docs go in**: `docs/` only (no root-level reports)

AGENTS.md

Quick reference for AI coding agents working on TOON PHP.

Commands

  • Run all tests: just test or vendor/bin/phpunit
  • Run single test file: vendor/bin/phpunit tests/PrimitivesTest.php
  • Run single test method: vendor/bin/phpunit --filter testEncodesStringsWithoutQuotes
  • Test with coverage: just test-coverage
  • Format code: just fix (Laravel Pint)
  • Static analysis: just analyse (PHPStan level 9)
  • Dev cycle: just dev (format + test)
  • Pre-PR: just pr (format + analyse + test)

Architecture

  • Main entry: src/Toon.php - static encode() and decode() methods
  • Encoding pipeline: Normalize → Encoders → Primitives → LineWriter
  • Decoding pipeline: Decoder classes in src/Decoder/
  • No runtime dependencies - only dev deps (PHPUnit, PHPStan, Pint)
  • Spec compliance: All changes MUST conform to docs/SPEC.md (TOON v3.3)

Code Style

  • PHP 8.1+ with declare(strict_types=1); in all files
  • Type safety: Use assert() after type checks, PHPStan level 9
  • Namespace: HelgeSverre\Toon
  • Tests go in: tests/ only (never create test files elsewhere)
  • Docs go in: docs/ only (no root-level reports)
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.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core