Phalcon Configuration

It is a component which is used to convert configuration files into PHP. Its directory location is Phalcon\Config.

Implementation

Example: To convert native array into Phalcon\Config Objects.


File Adapters

ClassDescription
Phalcon\Config\Adapter\IniUses INI files to store settings. Internally the adapter uses the PHP function parse_ini_file.
Phalcon\Config\Adapter\JsonUses JSON files to store settings.
Phalcon\Config\Adapter\PhpUses PHP multidimensional arrays to store settings. This adapter offers the best performance.
Phalcon\Config\Adapter\YamlUses YAML files to store settings.





Latest Courses