Env-Interop, a new standard interface package for PHP 8.4+, is now open for public review. It provides interoperable interfaces for loading and parsing environment files and encapsulating environment variables. The package includes six core interfaces: EnvLoaderService for loading variables into $_ENV, EnvParserService for parsing strings, EnvSetterService for adding/replacing variables, EnvGetter for retrieving values, EnvThrowable for error handling, and EnvTypeAliases for static analysis. Reference implementations demonstrate practical usage, and the project seeks community feedback through GitHub.
Sort: