moai-lang-php

Generate Laravel 11 and Symfony 7 projects using PHP 8.3 patterns.

1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/GoosLab/moai-rank --skill moai-lang-php-gooslab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-php
Source: https://github.com/GoosLab/moai-rank/tree/main/.claude/skills/moai-lang-php
Command: npx skills add https://github.com/GoosLab/moai-rank --skill moai-lang-php-gooslab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP developers spend excessive time wiring up modern PHP frameworks and patterns, duplicating boilerplate and risking inconsistent architectures.

Core Features & Use Cases

  • Laravel 11 Patterns: Controllers, Models, Migrations, API Resources, and Services
  • Symfony 7 Patterns: Controllers, Entities, Doctrine usage, and Dependency Injection
  • Modern PHP 8.3 Features: Enums, Attributes, Constructor Property Promotion, and typed properties
  • Testing & Architecture: DTOs, repositories, and modular service layers for robust API design

Quick Start

Install a PHP 8.3+ environment and start applying MoAI PHP patterns to bootstrap a Laravel or Symfony project.

Frequently Asked Questions about moai-lang-php

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

FAQPage Schema
What are the best practices for structuring a Laravel 11 API with a robust service layer?

To structure a Laravel 11 API, apply modular service layers, repository patterns, DTOs, and API Resources, separating business logic from controllers for robust and maintainable architecture.

How do I apply PHP 8.3 enums and attributes in a Symfony 7 project?

Apply PHP 8.3 enums and attributes in Symfony 7 by integrating them within Doctrine entities and dependency injection configurations, leveraging typed properties and constructor property promotion for strict, modular domain modeling.

Does this approach support both Eloquent ORM and Doctrine for repository patterns?

Yes, the approach supports both ORMs by providing structured repository patterns for Eloquent in Laravel 11 and Doctrine usage in Symfony 7, ensuring consistent data access layers across both frameworks.

How do I set up validation and testing workflows for modern PHP web applications?

Set up validation and testing workflows by implementing DTOs for request data shaping and applying thorough testing architectures, ensuring robust API design and reliable data integrity across PHP services.

Do I need a specific PHP environment to start building with these Symfony and Laravel patterns?

You need a PHP 8.3+ environment to start applying these patterns and leveraging modern features like enums, attributes, and typed properties when bootstrapping your Laravel or Symfony project.