moai-lang-php

Generate Laravel 11 and Symfony 7 APIs, web apps, and backend systems.

Updated Nov 28, 2024
One-click install
npx skills add https://github.com/desafin/Resource-Monitor-pyQT --skill moai-lang-php-desafin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-php
Source: https://github.com/desafin/Resource-Monitor-pyQT/tree/main/.claude/skills/moai-lang-php
Command: npx skills add https://github.com/desafin/Resource-Monitor-pyQT --skill moai-lang-php-desafin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers developers to build robust, modern PHP applications by providing expert guidance and code examples for popular frameworks like Laravel and Symfony, along with best practices for ORMs, testing, and package management.

Core Features & Use Cases

  • Framework Expertise: Deep knowledge of Laravel 11 and Symfony 7, including routing, controllers, ORMs (Eloquent, Doctrine), and service containers.
  • Modern PHP: Leverages PHP 8.3+ features like readonly classes, enums, and attributes.
  • Testing & Quality: Comprehensive support for PHPUnit, Pest, and coding standards (PSR-12, Pint).
  • Use Case: Generate a complete Laravel 11 API resource for managing users, including models, controllers, form requests, API resources, and tests, following best practices.

Quick Start

Use the moai-lang-php skill to generate a Laravel 11 controller for managing posts with CRUD operations.

Frequently Asked Questions about moai-lang-php

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

FAQPage Schema
How do I generate a complete Laravel 11 API resource with controllers and tests?

To generate a Laravel 11 API resource, this Skill provides expert code generation for models, controllers, form requests, API resources, and tests following modern PHP development best practices.

What's the best way to implement CRUD operations in Symfony 7?

Implementing CRUD operations in Symfony 7 is supported through expert guidance on routing, controllers, service containers, and ORM integration using Doctrine for complex backend systems.

Does this PHP development guidance support modern PHP 8.3 features like enums?

Yes, this PHP development guidance leverages modern PHP 8.3+ features, including readonly classes, enums, and attributes, ensuring your Laravel and Symfony applications use the latest syntax.

How do I integrate Eloquent and Doctrine ORMs in modern PHP applications?

You can integrate ORMs by utilizing the deep framework expertise provided, which covers Eloquent for Laravel 11 and Doctrine for Symfony 7, including architectural patterns and troubleshooting.

Can I use PHPUnit and Pest for testing PHP applications generated with this guidance?

Yes, you can use PHPUnit and Pest because comprehensive testing methodologies and coding standards like PSR-12 and Pint are fully supported for quality assurance in PHP applications.

Why should I use specific architectural patterns for complex PHP backend systems?

Using specific architectural patterns for complex PHP backend systems ensures robust API development and maintainable codebases by providing expert troubleshooting and adherence to modern coding standards.