Download the PHP package oasys/config without Composer
On this page you can find all versions of the php package oasys/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor oasys
Package config
Short Description Lightweight PHP array config file loader with dot-notation value access
License MIT
Package config
Short Description Lightweight PHP array config file loader with dot-notation value access
License MIT
Please rate this library. Is it a good library?
Informations about the package config
Oasys Config
Lightweight PHP array config file loader
- Dot-notation value access
- Multiple config files
- Default fallback values
- Safe key existence checks
- Filename-based config namespaces
Installation
Quick start
config/app.php
index.php
Config files
Each config file must return an array
The filename without extension becomes the top-level config key
You can group values by indenting an array
config/db.php
Usage
You can supply multiple config files
Dot notation
Default value
Existence check
Full export
Design notes
- Config files are loaded in the provided order
- Same filename overwrites the previous mapping
- Empty
get('')key returns the full config array - Missing key without default value returns
null - Missing files, unreadable files, and files that do not return arrays throw exceptions
All versions of config with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package oasys/config contains the following files
Loading the files please wait ...