By : smart_techie Published On Tuesday, October 30, 2012, 22:50 In PHP Scripts
PHP Storage Class is a very simple to use class which lets you store all your configuration and settings in simple configuration files. The class is very easy to use with any of your existing projects, just drop it in and start using.
Settings Class comes with two predefined drivers (1) File Driver (2) MySQL Driver – Using which you can easily switch between File based storage or MySQL based storage.
Usage is as simple as using two methods – You can easy select where you would like to store the settings, either in a settings file or in a database – You never have to change a single line of code
Writing
$config->set("page-settings","userbrowser","chrome");
Reading
$config->get("page-settings","userbrowser");