### Install Laravel PAO Source: https://github.com/laravel/pao/blob/1.x/README.md Install the package as a development dependency via Composer. ```bash composer require laravel/pao --dev ``` -------------------------------- ### Rector JSON Output Source: https://github.com/laravel/pao/blob/1.x/README.md Example of Rector's native JSON output format. ```json { "tool": "rector", "result": "failed", "totals": { "changed_files": 1, "errors": 0 }, "file_diffs": [ { "file": "app/Models/User.php", "diff": "--- Original\n+++ New\n@@ ...", "applied_rectors": [ "Rector\\Php54\\Rector\\Array_\\LongArrayToShortArrayRector" ] } ], "changed_files": [ "app/Models/User.php" ] } ``` -------------------------------- ### Pest Plugin Output Source: https://github.com/laravel/pao/blob/1.x/README.md Example of structured JSON output for Pest, including raw plugin data. ```json { "tool": "pest", "result": "passed", "tests": 1002, "passed": 1002, "duration_ms": 1520, "raw": [ "Http/Controllers/Controller 100.0%", "Models/User 0.0%", "Total: 33.3 %" ] } ``` -------------------------------- ### PHPStan JSON Output Source: https://github.com/laravel/pao/blob/1.x/README.md Example of PHPStan error reporting converted into a structured JSON format. ```json { "tool": "phpstan", "result": "failed", "errors": 2, "error_details": { "/app/Http/Controllers/Controller.php": [ { "line": 9, "message": "Method Controller::index() should return int but returns string.", "identifier": "return.type" }, { "line": 14, "message": "Call to an undefined method Controller::doesNotExist().", "identifier": "method.notFound" } ] } } ``` -------------------------------- ### Laravel Artisan Output Cleaning Source: https://github.com/laravel/pao/blob/1.x/README.md Demonstrates the reduction of Artisan command output by stripping decorative characters. ```text # Before (without PAO) — 2,111 characters Environment ................................................................ Application Name ................................................... Laravel Laravel Version ..................................................... 13.3.0 PHP Version .......................................................... 8.5.4 Debug Mode ......................................................... ENABLED # After (with PAO) — 535 characters Environment .. Application Name .. Laravel Laravel Version .. 13.3.0 PHP Version .. 8.5.4 Debug Mode .. ENABLED ``` -------------------------------- ### PHPUnit Output Transformation Source: https://github.com/laravel/pao/blob/1.x/README.md Shows the conversion of standard PHPUnit test output into a compact JSON format. ```text PHPUnit 12.5.14 by Sebastian Bergmann and contributors. ............................................................. 61 / 1002 ( 6%) ............................................................. 122 / 1002 ( 12%) ... .......................... 1002 / 1002 (100%) Time: 00:00.321, Memory: 46.50 MB OK (1002 tests, 1002 assertions) ``` ```json { "tool": "phpunit", "result": "passed", "tests": 1002, "passed": 1002, "duration_ms": 321 } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.