hello!
My identify is PHP Configurator and i may also help you to manage your configuration recordsdata into your PHP projects.
your entire projects have a few configurations settings that you can save on database or shop below files in format PHP, ini, yaml, xml, and so forth.
you already know, probably the most rapid manner is the usage of PHP array, however provide your shoppers a PHP array file may also be laborious to edit.
they need FTP software, an editor and recognize what to modify. With Out since they are able to mistaken edit that recordsdata.
No concerns!
thanks to me, you can simply create your PHP array arranged into recordsdata, and that i will create a nice person interface where your shoppers can easy edit your settings.
I work with any PHP array, however i've fundamental modes: easy PHP associative array like array(‘key1’ => ‘value1’, ‘key2’ => ‘value2’) and a complicated mode, the place you'll outline attributes like field type, validation, etc.
How does it paintings?
It’s lovely easy. In Finding under example of usage, then you'll also check instance demos right here, here and here.
// 1. Come With primary elegance include '../classes/Configurator.php'; // 2. Get Ready Settings $settings = 'base_dir' => '/path/to/www/envato/configurator' // base path to your project ,'config_dir' => '/config/' // config directory where you put your config files ,'form_field_prefix' => '<div class="form-group">' // Each form field will have this prefix ,'form_field_suffix' => '</div>' // Each form field will have this suffix ,'form_field_class' => 'form-control' // Form field class name ; // THREE. Create new instance passing $settings array $configurator = new Configurator($settings); // 4. Set configuration document (non-compulsory, if not noted, config.php might be used) // the path of record is build using $settings'base_dir' + $settings'config_dir' + 'config' + '.php' // 'config' is beneath paramter that you go to set $configurator->setFile('my_config_filename'); // 5. Set language file (not obligatory when you need translate label and description) // The language report need to be an associative array $configurator->setLanguage(come with '../config/language_en.php'); // 6. Load data from record $configData = $configurator->loadFile(); // 7. Set present config so we can add/edit config $configurator->setConfig($configData); // EIGHT. Check if put up is submitted if($_POST) // 9. Save $configurator->saveData($_POST); else // display form with data of configuration file $configurator->displayForm();Make Stronger discussion board:
https://socialveo.com/neighborhoodNOTICE: i've use this product in several PHP initiatives in last years, so it might probably imagine strong model. However all software has bugs, and when you uncover one, please let me realize. i can do my very best to fix them in later releases.
FULL DOWNLOAD
No comments:
Post a Comment