moai-lang-php

Audit PHP 8.4+ projects for PSR-12 compliance and PHPUnit 11 test coverage.

1|Updated Jul 28, 2025
One-click install
npx skills add https://github.com/kivo360/quickhooks --skill moai-lang-php-kivo360
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-php
Source: https://github.com/kivo360/quickhooks/tree/main/.claude/skills/moai-lang-php
Command: npx skills add https://github.com/kivo360/quickhooks --skill moai-lang-php-kivo360

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies PHP 8.4+ best practices, PHPUnit testing, Composer tooling, and modern frameworks (Laravel, Symfony).

Core Features & Use Cases

  • Language & Testing: PHP 8.4+ with PHPUnit 11 and Composer workflows.
  • Framework Patterns: Laravel and Symfony patterns for scalable apps.
  • Quality & Safety: PSR-12 standards and robust testing.

Quick Start

Set up a Laravel project with PHPUnit tests and run a basic test suite.

Frequently Asked Questions about moai-lang-php

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

FAQPage Schema
How do I enforce PHP 8.4+ best practices across my Laravel or Symfony project?

PHP 8.4+ best practices enforcement audits your source code, tests, and configuration against PSR-12 standards, PHPUnit 11 compliance, and framework patterns. The Skill automatically checks code alignment, validates test coverage (≥85%), and integrates with Composer workflows to ensure modern language features and framework conventions are applied consistently.

Can I use this with PHPUnit 11 and Composer in my existing codebase?

Yes. The Skill is built for PHPUnit 11 and Composer-managed projects. It audits test suites, validates configuration, and ensures your dependencies and test structure meet PHP 8.4+ standards, making it compatible with mature codebases using Laravel, Symfony, or PSR-12 compliant structures.

What does PSR-12 compliance check do for my PHP code?

PSR-12 compliance auditing standardizes code style, naming conventions, and structural patterns across your project. It validates that your PHP 8.4+ code follows industry standards for readability and maintainability, enforced automatically during code review and testing workflows.

How do I set up test coverage validation and TDD workflows?

The Skill integrates PHPUnit 11 testing with automatic coverage validation requiring ≥85% minimum coverage. It supports test-driven development workflows by auditing test quality, documentation of public APIs, and ensuring tests align with PHP 8.4+ best practices across your codebase.

Does this work with both Laravel and Symfony frameworks?

Yes. The Skill audits both Laravel and Symfony projects, enforcing framework-specific patterns alongside PHP 8.4+ language best practices, PSR-12 standards, and PHPUnit 11 testing conventions to ensure scalable, standards-compliant applications.

What happens if my project doesn't meet the minimum test coverage requirement?

The Skill flags insufficient test coverage during auditing. It identifies gaps below the ≥85% threshold and validates PHPUnit test structure, helping you incrementally improve coverage through automated compliance checks and code-review integration.