Download the PHP package koriym/env-json without Composer
On this page you can find all versions of the php package koriym/env-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download koriym/env-json
More information about koriym/env-json
Files in koriym/env-json
Download koriym/env-json
More information about koriym/env-json
Files in koriym/env-json
Vendor koriym
Package env-json
Short Description Type-safe, schema-driven alternative to .env files with JSON Schema validation
License MIT
Package env-json
Short Description Type-safe, schema-driven alternative to .env files with JSON Schema validation
License MIT
Please rate this library. Is it a good library?
Informations about the package env-json
Koriym.EnvJson
A modern approach to environment variables using JSON instead of .env
files, with built-in validation via JSON Schema.

Installation
Basic Usage
Configuration Files
env.schema.json
env.json
⚠️ Important: Environment variables are always strings
Do not use "type": "boolean"
or "type": "integer"
in your schema. Use "enum": ["true", "false"]
for booleans and "pattern": "^[0-9]+$"
for numbers.
Converting from .env
This generates both env.schema.json
and env.json
files.
CLI Tool
Try the Demo
Links
Configuration deserves more than plaintext. Structure it. Validate it. Understand it—with env.json!
All versions of env-json with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-json Version *
justinrainbow/json-schema Version ^6.4
marc-mabe/php-enum Version ^v4.7.1
ext-json Version *
justinrainbow/json-schema Version ^6.4
marc-mabe/php-enum Version ^v4.7.1
The package koriym/env-json contains the following files
Loading the files please wait ....