Php best practices

From HoangNguyen0403/agent-skills-standard · View interactive version

Php best practices is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Write PHP following PSR coding standards, SOLID principles, and code-quality guidelines. Use for PHP style, design, refactoring, naming, and guard clauses—not Composer/PSR-4 project configuration.

How to use this skill

Skill file

PHP Best Practices

**Priority: P1 (HIGH)**

Structure

src/
├── {Domain}/             # e.g., Services, Repositories
└── Helpers/              # Pure functions/Traits

Implementation Guidelines

Coding Style (PSR Standards)

SOLID Principles in PHP

Logic & Performance

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.