Download the PHP package devinci-it/envngine without Composer
On this page you can find all versions of the php package devinci-it/envngine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download devinci-it/envngine
More information about devinci-it/envngine
Files in devinci-it/envngine
Download devinci-it/envngine
More information about devinci-it/envngine
Files in devinci-it/envngine
Vendor devinci-it
Package envngine
Short Description Tiny schema-first environment loader for PHP apps
License MIT
Package envngine
Short Description Tiny schema-first environment loader for PHP apps
License MIT
Please rate this library. Is it a good library?
Informations about the package envngine
DevinciIT EnvNgine
Tiny schema-first environment loader for PHP 8.1+.
Quick Flow
- Add your schema in
config/env.php. - Boot the registry with
Env::boot('config/env.php'). - Read values with
Env::get(),Env::string(),Env::int(),Env::bool(), orEnv::array(). - Generate or secure
.envwith the provided CLI tools if needed.
Builder Config
config/env.php can return a direct builder chain, which is the easiest format to remember:
Access Values
Boot once, then read values anywhere:
Helpers:
CLI Tools
php bin/generate-env.phpgenerates.envfromconfig/env.php.php bin/secure-env.phpapplies permissions and optional owner/group changes.- Composer shortcuts are available through the
env:generate,env:secure, andenv:preparescripts.
Caveats
- Boot is lazy by default, but calling
Env::boot()locks the registry. config/env.phpis only loaded from the consumer project path or when passed explicitly.- Missing
.envor missing schema files produce a clear bootstrap error instead of a raw dotenv exception. - Access warnings are meant as diagnostics, so they are intentionally visible in CLI output.
- Array values are parsed from comma-separated strings.
- Defaults are applied from the schema when a key is missing.
- The registry becomes immutable after boot, so set runtime values before locking if you need to.
Package Surface
Env::boot()/Env::bootWithSchema()Env::get()/Env::string()/Env::int()/Env::bool()/Env::array()env_boot()/env_registry()bin/generate-env.phpbin/secure-env.php
License
MIT
All versions of envngine with dependencies
PHP Build Version
Package Version
The package devinci-it/envngine contains the following files
Loading the files please wait ...