moai-lang-php

Provide PHP 8.3+ development patterns for Laravel 11 and Symfony 7 projects.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/yarang/fastapi-error-code --skill moai-lang-php-yarang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-php
Source: https://github.com/yarang/fastapi-error-code/tree/main/.claude/skills/moai-lang-php
Command: npx skills add https://github.com/yarang/fastapi-error-code --skill moai-lang-php-yarang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured set of PHP 8.3+ development patterns and templates to accelerate building modern Laravel 11 and Symfony 7 applications, reducing boilerplate and guiding best practices.

Core Features & Use Cases

  • Laravel 11 patterns: Eloquent models, resources, requests, and services aligned with Laravel 11 conventions.
  • Symfony 7 patterns: Controllers, services, and Doctrine mappings that follow Symfony 7 paradigms.
  • Modern PHP features: Enums, attributes, constructor property promotion, typed properties, and union types applied to typical API projects.
  • Comprehensive patterns library: Includes validation, testing, events, queues, and API resource design to cover full-stack PHP development.
  • Use Case: When starting a new PHP API project, reference these patterns to scaffold consistent architecture across Laravel and Symfony codebases.

Quick Start

Install PHP 8.3+, create a Laravel 11 or Symfony 7 project, then refer to this Skill for ready-to-use patterns, templates, and examples to implement typical app features quickly.

Frequently Asked Questions about moai-lang-php

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

FAQPage Schema
How do I implement PHP 8.3+ patterns in Laravel 11 and Symfony 7 projects?

You can implement PHP 8.3+ patterns in Laravel 11 and Symfony 7 by adopting structured templates for API design, ORM integration, enums, attributes, and validation to reduce boilerplate and enforce best practices across your codebase.

What's the best way to reduce boilerplate when building APIs with Eloquent and Doctrine?

To reduce boilerplate when building APIs with Eloquent and Doctrine, apply modern PHP features like constructor property promotion and typed properties using ready-to-use patterns for models, controllers, services, and API resources.

Do I need a specific PHP environment to use modern Symfony 7 and Laravel 11 development patterns?

Yes, you need a PHP 8.3+ environment with common composer-based tooling to adopt these modern Symfony 7 and Laravel 11 development patterns, ensuring compatibility with features like enums and attributes.

How do modern PHP enums and attributes integrate with Laravel and Symfony frameworks?

Modern PHP enums and attributes integrate with Laravel and Symfony by replacing traditional configuration constants and annotations, streamlining validation logic, service definitions, and Doctrine mappings within typical API projects.

Can I use these PHP templates for both new and existing application codebases?

Yes, you can use these PHP templates for both new and existing application codebases, applying deployment-ready examples for events, queues, testing, and API design directly into your current Laravel or Symfony architecture.

When should I not use standardized patterns for Laravel and Symfony API projects?

You should avoid standardized patterns for Laravel and Symfony API projects when your application requires highly customized architecture that deviates from conventional Eloquent or Doctrine ORM mappings and standard controller-service workflows.