laravel-quality

Run PHPStan, Laravel Pint, and strict type checks on Laravel projects.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-quality-sivanwol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-quality
Source: https://github.com/Sivanwol/sabo-platfom/tree/main/.ai/skills/laravel-quality
Command: npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-quality-sivanwol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Code quality tooling for Laravel projects, enabling consistent static analysis, formatting, and strict typing across codebases to prevent defects and improve maintainability.

Core Features & Use Cases

  • Static analysis with PHPStan to catch type issues early.
  • Automatic code formatting with Laravel Pint to enforce style consistency.
  • Enforcing declare(strict_types=1) across PHP files and providing CI guidance for quality gates.
  • Use Cases: ensure controllers, models, and DTOs adhere to standards, integrate in CI pipelines, and speed up code reviews with automated checks.

Quick Start

Run the quality stack to analyse, format, and enforce strict types in your Laravel project.

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 static analysis in a Laravel project?

Enforce strict types and static analysis in Laravel by running PHPStan for type checking, Laravel Pint for formatting, and requiring declare(strict_types=1) in PHP files. This ensures controllers and models adhere to quality standards.

What's the best way to automate Laravel code formatting and style checks?

Automate Laravel code formatting using Laravel Pint to enforce style consistency across your codebase. Integrating Pint within your development workflow prevents style violations and speeds up code reviews.

Can I integrate PHPStan and Pint checks into a Laravel CI pipeline?

Yes, you can integrate PHPStan and Pint into Laravel CI pipelines to establish quality gates. Running these tools in CI ensures accurate type hints and reliable formatting are verified before merging code.

Why does my Laravel code quality check fail on missing type hints?

Laravel code quality checks fail on missing type hints because PHPStan static analysis requires accurate type definitions to catch type issues early. Adding strict type declarations and proper type hints resolves these errors.

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

Yes, running Laravel code quality checks requires installing PHPStan and Laravel Pint as dependencies. These tools perform the static analysis and formatting required to enforce consistent code standards across your project.