From php
ACTIVATE when writing PHP class constants in a PHP 8.3+ project. Covers: mandatory typed class constants. DO NOT use for: general PHP syntax, PHP 8.2 features (see php-8.2).
How this skill is triggered — by the user, by Claude, or both
Slash command
/php:php-8.3The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The key project convention: always type class constants.
The key project convention: always type class constants.
// AVOID
private const TRANSLATION_DOMAIN = 'messages';
private const MAX_ITEMS = 100;
// CORRECT
private const string TRANSLATION_DOMAIN = 'messages';
private const int MAX_ITEMS = 100;
Supported types: string, int, float, bool, array, class/interface names, mixed.
npx claudepluginhub fabiensalles/claude-marketplace --plugin phpWrite modern PHP 8.x code with typed properties, enums, readonly classes, match expressions, named arguments, union types, fibers, attributes, and constructor promotion. For WooCommerce or PHP 8.x projects.
Writes modern PHP 8.x code with constructor promotion, enums, readonly classes/properties, match expressions, named arguments, union/intersection types, fibers, attributes. For Magento or PHP 8.x projects.