moai-lang-php

Enforce PHP 8.4+ best practices with PHPUnit 11 and Composer.

4|1|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-lang-php-ajbcoding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-php
Source: https://github.com/AJBcoding/claude-skill-eval/tree/main/skills/moai-lang-php
Command: npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-lang-php-ajbcoding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP 8.4+ best practices with modern testing, dependency management, and framework patterns.

Core Features & Use Cases

  • ✅ Language best practices for PHP 8.4+
  • ✅ Testing patterns with PHPUnit 11
  • ✅ Composer-based dependency management
  • ✅ Web framework patterns (Laravel, Symfony)

Quick Start

Create a simple Laravel/Symfony-style endpoint with a PHPUnit test validating a JSON response.

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 in my Laravel or Symfony project?

PHP 8.4+ best practices are enforced through automated code reviews, PSR-12 compliance checks, and integration with PHPUnit 11 testing and Composer dependency management. The Skill applies quality gates across Laravel and Symfony codebases to ensure modern language standards and framework patterns are met.

Can I use PHPUnit 11 with Composer for automated testing in my PHP project?

Yes. PHPUnit 11 integrates with Composer-based dependency management to run automated tests on PHP 8.4+ codebases. The Skill validates testing patterns and enforces best practices during test execution, covering framework-specific patterns for Laravel and Symfony.

What does PSR-12 compliance mean for PHP code reviews?

PSR-12 is a PHP language standard defining coding style and structure. The Skill enforces PSR-12 compliance during code reviews on PHP 8.4+ projects, ensuring consistent formatting, naming conventions, and organizational patterns across Laravel and Symfony applications.

How do I migrate an existing PHP project to PHP 8.4+ standards?

The Skill provides migration guidance for upgrading codebases to PHP 8.4+ standards, applying best practices through automated checks, PHPUnit 11 testing validation, and Composer version constraints. It integrates with moai-foundation-trust quality gates to verify compliance during the transition.

Does this work with both Laravel and Symfony frameworks?

Yes. The Skill enforces PHP 8.4+ best practices and modern testing patterns across both Laravel and Symfony projects using PHPUnit 11 and Composer, covering framework-specific patterns and dependency management for each ecosystem.

What quality gates are applied to PHP projects with this Skill?

Quality gates include PSR-12 language compliance, PHPUnit 11 test validation, Composer dependency version constraints, and TRUST 5 framework integration. These gates ensure code meets PHP 8.4+ standards, testing requirements, and dependency management best practices.