brs14ku / ConfigParser

This class takes a config file and sets all variables as a php variable with an accessible value.

Repository from Github https://github.combrs14ku/ConfigParserRepository from Github https://github.combrs14ku/ConfigParser

Takes a config file and stores all config values as accessible php variables. Var_dump below :

  public 'host' => string 'test.com' (length=8)
  public 'server_id' => int 55331
  public 'server_load_alarm' => float 2.5
  public 'user' => string 'user' (length=4)
  public 'verbose' => boolean true
  public 'test_mode' => boolean true
  public 'debug_mode' => boolean false
  public 'log_file_path' => string '/tmp/logfile.log' (length=16)
  public 'send_notifications' => boolean true

About

This class takes a config file and sets all variables as a php variable with an accessible value.


Languages

Language:PHP 100.0%