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

Pao Laravel Package

laravel/pao

Agent-optimized output for PHP tools. Detects AI agents (Claude Code, Cursor, Devin, Gemini CLI, etc.) and replaces verbose PHPUnit/Pest/Paratest/PHPStan/Rector and Laravel Artisan output with minimal structured JSON (and cleaner Artisan text). Zero config; human terminal output unchanged.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • AI-Driven Development Acceleration: Enables seamless integration of AI agents (e.g., Claude Code, Cursor) into PHP development workflows by reducing token consumption by 99.8% for test outputs and 75% for Artisan commands. Directly supports roadmap items like "AI-Assisted Debugging" and "Cost-Efficient CI/CD" by ensuring structured, minimal data is fed to AI tools without sacrificing human-readable output.
  • Build vs. Buy Decision: Validates the "buy" approach for AI-optimized tooling by providing a maintained, Laravel-backed solution that eliminates the need for custom engineering. The MIT license and active development (v1.1.1 fixes) reduce long-term risk.
  • Developer Experience (DX) Enhancement: Aligns with initiatives to reduce cognitive load for developers by preserving familiar CLI output while offloading AI-specific optimizations to PAO. The zero-configuration model ensures adoption doesn’t require additional tooling or training.
  • Cost Optimization for AI Workflows: Directly addresses token budget constraints in AI-driven pipelines (e.g., GitHub Copilot, internal LLM agents) by standardizing output formats. The constant-size JSON output (regardless of test volume) is critical for predictable costs in large-scale test suites.
  • Laravel Ecosystem Synergy: Strengthens the case for Laravel as a platform for AI-native development by providing native support for Artisan, PHPUnit, Pest, and PHPStan. The auto-discovery feature reduces friction for Laravel teams adopting AI tools.

When to Consider This Package

  • Adopt if:
    • Your team uses AI agents (Claude Code, Cursor, Devin, Gemini CLI) to analyze PHPUnit, Pest, Paratest, PHPStan, or Rector outputs in CI/CD or local development.
    • You’re running large test suites (1,000+ tests) where verbose output inflates AI token costs or processing time.
    • You need structured JSON for AI parsing but want to preserve human-readable CLI output unchanged.
    • Your stack includes Laravel 12+, PHP 8.3+, and any combination of the supported tools (PHPUnit 12-13, Pest 4-5, etc.).
    • You’re experiencing incomplete or corrupted test results during runtime exits (e.g., crashes, timeouts) or boolean environment variable misparsing (e.g., true/false strings not converting to booleans).
    • You want to reduce Artisan command token usage by 75% without modifying existing workflows.
  • Look elsewhere if:
    • Your AI agent cannot process JSON (e.g., legacy tools requiring raw text).
    • You don’t use Laravel/Artisan and your PHP tools are unsupported (though Symfony/Laminas are compatible).
    • You need custom output schemas beyond PAO’s formats (e.g., nested error hierarchies, proprietary metrics).
    • Your workflows rely on ANSI colors or formatting for critical debugging (PAO strips these for AI agents but preserves them for humans).
    • You’re on PHP < 8.3 or unsupported tool versions (e.g., PHPUnit 11, Pest 3).

How to Pitch It (Stakeholders)

For Executives: "PAO cuts AI token costs by 99.8% for test outputs and 75% for Artisan commands—directly addressing our $X/month spend on AI-driven QA. With zero configuration, it auto-detects AI agents (Claude, Cursor) and serves structured JSON while keeping CLI output unchanged. The latest v1.1.1 fixes ensure no lost test results during crashes and correct boolean parsing for env vars—critical for reliability. This is a low-risk, high-impact upgrade to stabilize our AI workflows and reduce costs without disrupting teams."

For Engineering Leaders: *"PAO solves two key pain points in our AI-assisted workflows:

  1. No more silent test failures: v1.1.1 fixes incomplete results on runtime exits (e.g., timeouts).
  2. Accurate env var parsing: Boolean values (e.g., APP_DEBUG=true) now convert correctly. It’s one composer command—no config, no breaking changes. Your CLI stays the same, but AI agents get lean, structured data for faster, cheaper processing. Let’s deploy this to cut token waste and improve debugging."*

For DevOps/Platform Teams: *"PAO standardizes AI input formats across PHP tools, ensuring consistent JSON output for our internal LLM agents. The v1.1.1 fixes resolve:

  • Partial test results in CI pipelines (e.g., crashes during parallel runs).
  • Env var inconsistencies (e.g., false strings vs. actual booleans). It auto-detects AI contexts and cleans Artisan output—no changes to your pipelines. Zero risk, 100% compatibility with our Laravel/PHP stack. Let’s reduce noise in our AI inputs and improve reliability."*

For Developers: "Tired of AI agents choking on verbose test output? PAO auto-swaps your CLI output to JSON when running in tools like Cursor or Claude—but your terminal stays the same. It even fixes crashes (v1.1.1) and cleans up Artisan commands for AI parsing. Just install it, and your tests become AI-friendly without effort. Try it—your future self will thank you."

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.
bugban/php-sdk
littlerocket/job-queue-bundle
graham-campbell/flysystem
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/opensearch-client
directorytree/opensearch-adapter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php