league/config
Define and validate nested PHP configuration with strict schemas (via Nette Schema). Merge multiple config sources, apply defaults, enforce types/constraints, and read values using convenient dot notation. Ideal for robust, structured app and library config.
There are lots of great configuration libraries out there, each one serving a slightly different purpose. As a result, this library aims to satisfy a particular niche not being served well by others by taking a simple yet opinionated approach to configuration with the following goals:
As a result, this library will likely never support features like:
If you need that functionality you should check out other great libraries like:
To help facilitate this approach, we heavily rely on the following two open-source libraries under-the-hood:
nette/schema to define and process the configuration schemasdflydev/dot-access-data to simplify reading/writing the valuesThese were chosen specifically for being minimal, well-written, and unlikely to conflict with other dependencies you might have installed.
How can I help you explore Laravel packages today?