named-arguments

Installation
SKILL.md

PHP Named Arguments

When to use

  • The user wants a call with bare true/false or unlabeled literals to read clearly on PHP 8.0+.
  • The user calls a constructor or function that takes many same-typed parameters and wants call sites to stay self-documenting on PHP 8.0+.
  • The user calls a function with several optional parameters but only wants to set a later one on PHP 8.0+.

When NOT to use

  • Do not use named arguments when the target runtime is PHP 7.4 or earlier; use positional arguments or an options array instead.
  • Do not use this skill when a call has a single, self-evident argument where a name adds noise, not clarity.

Core guidance

Installs
1
GitHub Stars
3
First Seen
Jul 3, 2026
named-arguments — anyorgname/php-skills