laravel-quality

Automate Laravel code quality checks with PHPStan, Pint, and strict types.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/nextplus896/durra-alaseel --skill laravel-quality-nextplus896
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-quality
Source: https://github.com/nextplus896/durra-alaseel/tree/main/.github/skills/claude-laravel/laravel-quality
Command: npx skills add https://github.com/nextplus896/durra-alaseel --skill laravel-quality-nextplus896

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps Laravel projects enforce code quality by integrating PHPStan, Laravel Pint, and strict types to catch issues early, standardize style, and improve maintainability.

Core Features & Use Cases

  • Static analysis: Configure and run PHPStan to detect type errors, code smells, and architectural violations.
  • Code formatting: Use Laravel Pint to enforce a consistent coding style across the Laravel codebase.
  • Type safety & architecture: Enforce declare(strict_types=1) and strict type hints for controllers, models, services, DTOs, and tests.
  • Use Case: In a CI pipeline for a Laravel project, enable these tools to fail builds that don’t meet quality standards.

Quick Start

Install PHPStan and Pint, enable strict types, and run the quality checks locally or in CI.

Frequently Asked Questions about laravel-quality

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

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

To enforce strict types and code quality in Laravel, you can integrate PHPStan for static analysis and Laravel Pint for formatting. This combination catches type errors and standardizes style across controllers, models, services, and DTOs.

What's the best way to run PHPStan and Laravel Pint in a CI pipeline?

Running PHPStan and Laravel Pint in a CI pipeline involves configuring both tools to scan your Laravel codebase and fail builds that violate strict type or architectural rules. This ensures quality standards are met before deployment.

Does static analysis with PHPStan work for Laravel controllers and DTOs?

Yes, static analysis with PHPStan works for Laravel controllers and DTOs by detecting type errors and architectural violations. It requires enabling strict type hints and a configuration that enforces architecture rules across your project.

Why should I use Laravel Pint instead of other code formatting tools?

Laravel Pint standardizes coding style specifically across Laravel codebases. Using it alongside PHPStan ensures both consistent formatting and type safety, catching code smells and style issues early in the development workflow.

Do I need to install PHPStan and Pint separately to automate Laravel code quality checks?

Yes, you need to install PHPStan and Laravel Pint separately to automate Laravel code quality checks. You must also enable strict types and configure architecture rules to integrate these tools into your local or CI workflow.