koriym / env-json
Installs: 107 408
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^8.1
- ext-json: *
- amphp/amp: ^v3.1
- justinrainbow/json-schema: ^6.4
- marc-mabe/php-enum: ^v4.7.1
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.2
- phpunit/phpunit: ^9.6.22
README
Koriym.EnvJson is a type-safe and schema-driven alternative to traditional .env
files.
Environment variables are defined in env.json
and validated using env.schema.json
based on the JSON Schema standard. This allows you to declare types, constraints, default values, and documentation for your configuration in a structured and machine-verifiable way.
Configuration deserves more than plaintext. Structure it. Validate it. Understand it—with env.json!