php-style

Installation
SKILL.md

PHP style

1. Strict types and strict comparison

  • Every PHP file starts with declare(strict_types=1); (after the opening tag, before the namespace).
  • Always compare with === / !==. Never == / !=.

2. Type hints and return types

  • Every method declares parameter types and a return type, including void:

    function isAccessible(User $user, ?string $path = null): bool
    
  • Use the short nullable notation ?Type instead of Type|null:

Installs
4
First Seen
May 6, 2026
php-style — glamorous/coding-skills