Download the PHP package proteins/options without Composer
On this page you can find all versions of the php package proteins/options. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download proteins/options
More information about proteins/options
Files in proteins/options
Download proteins/options
More information about proteins/options
Files in proteins/options
Vendor proteins
Package options
Short Description A dictionary to handle application-wide options
License MIT
Package options
Short Description A dictionary to handle application-wide options
License MIT
Please rate this library. Is it a good library?
Informations about the package options
Protein | Options
A dictionary to handle application-wide options
Install
Require the global class via :
or the include the trait in your classes via :
Loading a config file
You can load a config tree from a file or an array via the utility loaders methods :
Method | Description |
---|---|
loadArray |
Load directly an array of key->values |
loadPHP |
Load array key->values from a PHP file returning it. |
loadINI |
Load values from an .ini file. |
loadJSON |
Load JSON key->value map. |
loadENV |
Load environment variables from a .env file. |
Loading options from file or array
config.php
Loading Options and Environment from a .env file
/index.php
/.env
Result:
All versions of options with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
proteins/map Version ^1.0.0
proteins/filter Version ^1.0.0
proteins/dictionary Version ^1.0.0
proteins/map Version ^1.0.0
proteins/filter Version ^1.0.0
proteins/dictionary Version ^1.0.0
The package proteins/options contains the following files
Loading the files please wait ....