contempt/config

Typed configuration objects, layered configuration providers and deterministic precedence.

Maintainers

Package info

github.com/contempt-framework/config

pkg:composer/contempt/config

Transparency log

Statistics

Installs: 165

Dependents: 4

Suggesters: 0

Stars: 0

v1.0.4 2026-08-23 13:48 UTC

This package is auto-updated.

Last update: 2026-08-23 13:49:07 UTC


README

CI

Typed configuration objects, layered configuration providers and deterministic precedence.

This repository is a read-only split of the Contempt monorepo. Issues and pull requests belong in contempt-framework/contempt.

Installation

composer require contempt/config

Documentation

https://contempt.lemric.com/docs

Environment bootstrap

DotEnvBootstrap uses symfony/dotenv at the process boundary and returns an immutable environment snapshot. The default policy loads dotenv files only for dev and test; production requires an explicit Enabled policy. Native process variables keep precedence and putenv() is never enabled. Map the raw strings with EnvironmentConfigurationProvider, then hydrate a declared typed configuration object before injecting values into application services.

License

MIT. See LICENSE.