Skip to content

feat(php): add PAO - agent-optimized output for PHP testing tools#2

Open
alies-dev wants to merge 2 commits intomainfrom
feat/php-pao
Open

feat(php): add PAO - agent-optimized output for PHP testing tools#2
alies-dev wants to merge 2 commits intomainfrom
feat/php-pao

Conversation

@alies-dev
Copy link
Copy Markdown
Owner

@alies-dev alies-dev commented Apr 3, 2026

Summary

  • Adds PAO by @nunomaduro to the PHP guide
  • PAO auto-detects AI agents and replaces verbose PHPUnit/Pest/ParaTest output with constant-size JSON (~20 tokens) — up to 99.8% token reduction
  • Added as a dedicated section before the manual flags

PAO is the best-in-class solution for PHP test output optimization — it automates what this guide documents manually (for PHPUnit - based packages, doesn't cover https://github.com/php-testo/testo). This is the kind of tool-level integration we'd love to see more of across ecosystems.

Why

This guide documents AI-friendly CLI flags. PAO takes a different, better approach: instead of requiring developers to remember flags, it detects AI agents automatically and outputs minimal JSON. Both approaches are useful — PAO for testing tools, manual flags for everything else (PHPStan, Psalm, phpcs, Composer, etc.).

PAO by @nunomaduro auto-detects AI agents and replaces verbose
PHPUnit/Pest/ParaTest output with constant-size JSON (~20 tokens).
Added to Quick Reference table and dedicated section before manual flags.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for PAO (Agent-Optimized Output) to the PHP CLI output optimization guide, positioning it as an automated alternative to manually applying PHPUnit/Pest/ParaTest “quiet” flags.

Changes:

  • Introduces a new PAO (Agent-Optimized Output) section describing what PAO does and how to install it.
  • Adds an example of PAO’s compact JSON output plus a small token-reduction comparison table.
  • Clarifies that manual PHPUnit/Pest/ParaTest flags remain documented for cases where PAO can’t be added.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alies-dev alies-dev changed the title feat(php): add PAO — agent-optimized output for PHP testing tools feat(php): add PAO - agent-optimized output for PHP testing tools Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants