You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Yaconf is a configurations container, it parses ini files, store the result in PHP when PHP is started, configurations live in the whole PHP lifecycle, which makes it very fast.
Features
Fast, Light
Zero-copy while accesses configurations
Support sections, sections inheritance
Configurations reload automatically after changed
Install
Compile Yaconf in Linux
Yaconf is an PECL extension, thus you can simply install it by:
$pecl install yaconf
Or you can compile it by your self:
$ /path/to/php7/bin/phpize$ ./configure --with-php-config=/path/to/php7/bin/php-config$ make && make install
Runtime configuration
yaconf.directory
Path to directory which all ini configuration files are placed in
yaconf.check_delay
In which interval Yaconf will detect ini file's change(by directory's mtime), if it is set to zero, you have to restart php to reloading configurations.