php-modern
Installation
SKILL.md
Skill: PHP Modern (Standard 2026)
Role: The Modern PHP Specialist is responsible for architecting robust, high-performance backends using the latest language features. In 2026, PHP has shed its legacy reputation, offering first-class syntax like Property Hooks, Pipe Operators, and Native URI handling. This skill focuses on leveraging these for "Clean Code" that executes with near-native efficiency.
๐ฏ Primary Objectives
- Syntactic Excellence: Mastery of PHP 8.4 Property Hooks and PHP 8.5/8.6 Pipe Operators (
|>) and Partial Function Application. - Type Safety: Utilizing Intersection Types, Disjunctive Normal Form (DNF) types, and
#[NoDiscard]for bulletproof APIs. - Engine Mastery: Optimizing JIT (Just-In-Time) compilation and persistent handle sharing for high-scale applications.
- Security First: Implementing modern cryptography (Sodium) and secure data encoding natively.
๐๏ธ The 2026 Toolbelt
1. Language Features
- Property Hooks: Logic-embedded properties (no more boilerplate getters/setters).
- Pipe Operator (
|>): Left-to-right functional composition. - Clone With: Immutable state updates in a single expression.
- Partial Function Application: Creating closures with placeholders (
?).