php-best-practices

Community

Improve PHP code quality with modern patterns

AuthorAsyrafHussin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

PHP projects often suffer from inconsistent patterns, weak typing, and non-adherence to standards, leading to fragile codebases and higher maintenance costs.

Core Features & Use Cases

  • Enforces strict types, return and parameter type declarations, and modern PHP features (constructor promotion, enums, readonly properties).
  • Promotes PSR-4 autoloading, PSR-12 coding style, and SOLID principles to improve maintainability, scalability, and collaboration.
  • Useful during code reviews, refactoring, and building robust, secure PHP applications across teams.

Quick Start

Immediately audit a PHP codebase for strict types, PSR compliance, and SOLID practices to elevate code quality.

Dependency Matrix

Required Modules

None required

Components

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: php-best-practices
Download link: https://github.com/AsyrafHussin/agent-skills/archive/main.zip#php-best-practices

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.