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 Env component provides functions for inspecting and modifying the process environment. It covers environment variables, the current working directory, temporary paths, command-line arguments, and PATH manipulation.
Read, write, and remove environment variables for the current process:
@example('system/env-variables.php')
Keys containing = or the NUL character are rejected with an InvariantViolationException.
@example('system/env-directories.php')
@example('system/env-system-paths.php')
@example('system/env-args.php')
Split and join PATH-style strings using the platform's path separator (: on Unix, ; on Windows):
@example('system/env-paths.php')
See src/Psl/Env/ for the full API.
How can I help you explore Laravel packages today?