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

  1. Syntactic Excellence: Mastery of PHP 8.4 Property Hooks and PHP 8.5/8.6 Pipe Operators (|>) and Partial Function Application.
  2. Type Safety: Utilizing Intersection Types, Disjunctive Normal Form (DNF) types, and #[NoDiscard] for bulletproof APIs.
  3. Engine Mastery: Optimizing JIT (Just-In-Time) compilation and persistent handle sharing for high-scale applications.
  4. 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 (?).
Related skills
Installs
21
GitHub Stars
10
First Seen
Jan 27, 2026