For a basic understanding why adapters are useful, have a look at the configuration documentation.
You can build your own configuration adapter. Want to know how? Have a look at the extending phpbu section
Adapter to use .env files to load environment variables.
Example 3.3: Adapter definition
<adapter type="dotenv" name="myName"> <option name="file" value="my-dot-env-dir/.env"/> </adapter>