0069-laravel-quality

Configure PHPStan, Laravel Pint, and Pest checks for Laravel projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MrJmpl3/codex_____data_____configuration --skill 0069-laravel-quality
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: 0069-laravel-quality
Source: https://github.com/MrJmpl3/codex_____data_____configuration/tree/main/skills/0069-laravel-quality
Command: npx skills add https://github.com/MrJmpl3/codex_____data_____configuration --skill 0069-laravel-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents gradually worsening Laravel code quality by standardizing strict typing, code style, static analysis, and automated test enforcement before issues reach production.

Core Features & Use Cases

  • Strict types enforcement: Ensures every PHP file declares declare(strict_types=1) to reduce type-related bugs.
  • Static analysis with PHPStan: Uses PHPStan with strict rules (including Larastan) and a tuned baseline for common Laravel patterns.
  • Code style with Laravel Pint: Applies consistent formatting and import ordering so PRs stay readable and diff-friendly.
  • Architecture and convention tests with Pest: Adds guardrails such as action naming, strict-types usage, and controller/model boundaries.
  • Test coverage and CI gates: Encourages meaningful coverage thresholds (e.g., minimum 80%) and blocks regressions via CI/CD.

Quick Start

Enable strict types, then run Pint, PHPStan, and Pest in CI using the provided configuration as your baseline.

Frequently Asked Questions about 0069-laravel-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce strict code quality in a Laravel project?▼

Laravel code quality is enforced by combining strict typing, Laravel Pint for style, PHPStan with Larastan for static analysis, and Pest architecture tests gated within CI/CD pipelines to prevent regressions.

What does Larastan add to PHPStan for Laravel static analysis?▼

Larastan extends PHPStan static analysis with Laravel-specific strict rules and a tuned baseline, checking common framework patterns to reduce type-related bugs in your application.

How do I set up CI quality gates for Laravel Pint and Pest tests?▼

CI quality gates for Laravel are configured by running Pint, PHPStan, and Pest architecture tests in your pipeline, blocking merges that fail style, static analysis, or coverage thresholds.

Can I use Pest architecture tests to enforce controller and model boundaries?▼

Pest architecture tests enforce controller and model boundaries by adding guardrails for action naming, strict-types usage, and structural conventions directly within your test suite.

Do I need declare(strict_types=1) in every PHP file for Laravel static analysis?▼

Strict types enforcement requires every PHP file to declare strict_types=1, reducing type-related bugs and meeting the architectural guardrails checked by Pest and PHPStan.

What is the best way to maintain consistent Laravel code style in pull requests?▼

Laravel Pint maintains consistent code style and import ordering across pull requests, ensuring formatting stays readable and diff-friendly when integrated into automated workflows.