azjezz/psl
PSL is a modern, well-typed standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers safer, predictable APIs for async, collections, networking, I/O, crypto, terminal UI, and robust data validation—replacing brittle built-ins with consistent alternatives.
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?