azjezz/psl
PSL (PHP Standard Library) offers a consistent, well-typed set of safer, async-ready APIs to replace PHP primitives. Covers async, collections, networking, I/O, cryptography, terminal UI, and type-safe data validation with predictable errors.
The Trait component provides type-safe wrappers around PHP's built-in trait reflection and existence checks. It replaces loose trait_exists() calls with a consistent, intention-revealing API.
PSL separates existence checks into two distinct functions -- exists() (triggers autoloading) and defined() (checks only already-loaded definitions) -- so the intent is always clear.
@example('other/reflection-interface-trait.php')
See src/Psl/Trait/ for the full API.
How can I help you explore Laravel packages today?