Download the PHP package mizmoz/config without Composer
On this page you can find all versions of the php package mizmoz/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mizmoz/config
More information about mizmoz/config
Files in mizmoz/config
Download mizmoz/config
More information about mizmoz/config
Files in mizmoz/config
Vendor mizmoz
Package config
Short Description Mizmoz Config
License MIT
Homepage https://www.mizmoz.com/
Package config
Short Description Mizmoz Config
License MIT
Homepage https://www.mizmoz.com/
Please rate this library. Is it a good library?
Informations about the package config
Mizmoz / Config
Aims
- Be lightweight
- Configs are just php files which return arrays
- Environment set using .environment file
- Overridable by environment variables
- Lazy load config files
Getting Started
Composer Installation
Basic Usage
Set the environment
Create a file in the root of the project called .environment which should contain the current platform
To set as development:
echo 'development' > /my/project/root/.environment
Alternatively use system environment
export ENVIRONMENT=development
Load a configuration from an array
Load configuration from a directory of configs
Load configuration from a directory whilst handling different environments
Override the config values
Accessing the configs
Roadmap
- Add support for duplicating values such as website address which might be re-used for multiple params.
- Need to figure out a way to do this without introducing any significant overhead when returning a config tree
All versions of config with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
ext-mbstring Version *
ext-mbstring Version *
The package mizmoz/config contains the following files
Loading the files please wait ....