craft-php-guidelines
CommunityCraft CMS 5 PHP coding standards for plugins.
Authormichtio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Craft CMS 5 PHP coding standards and conventions provide a centralized guide for plugin and module development, ensuring consistent code quality and maintainability across projects.
Core Features & Use Cases
- PHPDocs on everything (classes, methods, properties) to improve static analysis and collaboration.
- Naming conventions and project-wide patterns (e.g., beforePrepare() addSelect(), strict typing, and avoiding declare(strict_types=1) in plugin source files).
- Companion tooling guidelines (ECS, PHPStan) and scaffolding practices to streamline development.
Quick Start
Apply these standards to every PHP file in a Craft CMS 5 plugin or module.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: craft-php-guidelines Download link: https://github.com/michtio/craftcms-claude-skills/archive/main.zip#craft-php-guidelines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.