alies-dev/psalm-tester
Run Psalm static analysis tests using .phpt fixtures. Define PHP code plus expected output (or EXPECTF), pass custom Psalm CLI args per tester or per test, and conditionally skip tests via SKIPIF. Integrates easily with PHPUnit test suites.
--SKIPIF-- section introduces environment-aware execution (e.g., skip Psalm for dev branches or non-production environments), mirroring test suite flexibility and reducing noise in CI/CD.Adopt this package if:
--SKIPIF-- (e.g., skip for dev branches or non-production environments).Look elsewhere if:
For Executives:
"This update transforms Psalm from a bottleneck into a scalable, observable quality gate. Batch execution lets us run static analysis only on changed files per PR, cutting pipeline time by 30–50% while maintaining type safety. The --SKIPIF-- feature ensures we skip unnecessary checks in non-production environments, and progress tracking provides real-time visibility—just like unit tests. It’s a low-effort way to accelerate development without sacrificing code quality, while also giving us data to optimize CI/CD costs over time."
For Engineering Leaders:
*"The new batch execution, --SKIPIF-- support, and progress output let us treat Psalm like a test suite—run it conditionally, in parallel, or on subsets of code. Key wins:
./vendor/bin/psalm-tester --batch=modified), reducing pipeline time.dev branches or non-production environments with --SKIPIF--.For Developers: *"Psalm just got way more useful in your workflow:
./vendor/bin/psalm-tester --batch=my-service (for microservices) or --batch=modified (for PRs).--SKIPIF-- lets you exclude environments/branches (e.g., ./vendor/bin/psalm-tester --SKIPIF--="branch != main").phpunit.How can I help you explore Laravel packages today?