php-best-practices

Audit PHP projects for PSR-12 compliance, type declarations, and input validation.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/jcastillotx/vibe-skeleton-app --skill php-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-best-practices
Source: https://github.com/jcastillotx/vibe-skeleton-app/tree/main/setup/skills/php-best-practices
Command: npx skills add https://github.com/jcastillotx/vibe-skeleton-app --skill php-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves inconsistent PHP coding practices across teams.

Core Features & Use Cases

  • Rule-Based Guidance: Covers security (validation, escaping, hashing), type safety (strict types, return types, nullable types), PSR standards, and testing patterns.
  • Project Onboarding: Enforces consistent starter templates and file headers across PHP projects.
  • Use Case: A team refactors WordPress plugins to modern PHP while preserving compatibility and security.

Quick Start

Use the php-best-practices skill to audit a PHP project for PSR-12 compliance, type declarations, and input validation rules.

Frequently Asked Questions about php-best-practices

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

FAQPage Schema
How do I enforce PSR-12 coding standards across a PHP development team?

You can enforce PSR-12 standards by applying codified rule-based guidance and templates that standardize type safety, security, and style across your PHP project onboarding and review processes.

What is the best way to refactor a WordPress plugin for modern PHP security and compatibility?

The best way to refactor a WordPress plugin for modern PHP is to apply guided coding rules that ensure input validation, output escaping, and password hashing while preserving compatibility and enforcing strict type declarations.

Does this PHP best practices guidance work with Laravel applications?

Yes, this PHP best practices guidance works with Laravel applications, providing rule-based templates that enforce type safety, PSR standards, and testability patterns across backends to solve inconsistent team coding practices.

How do I audit an existing PHP project for type declarations and input validation rules?

You can audit an existing PHP project for type declarations and input validation by applying these codified rules to check for strict types, return types, nullable types, and PSR-12 compliance across the codebase.

What PHP testing patterns should I use to improve code quality during refactoring?

To improve code quality during PHP refactoring, you should apply codified testing patterns alongside type safety rules and PSR standards, ensuring your refactoring tasks preserve security, style, and testability across the application.