Hello there!

My identify is PHP Configurator and I will help you to handle your configuration information into your PHP tasks.

All of your tasks have some configurations settings which it can save you on database or save beneath information in format PHP, ini, yaml, xml, and so forth.

You already know, probably the most quick approach is utilizing PHP array, however give your clients a PHP array file might be arduous to edit.

They want FTP program, an editor and know what to vary. With out contemplating that they will fallacious edit that information.

No worries!

Because of me, you’ll be able to simply create your PHP array organized into information, and I’ll create a pleasant consumer interface the place your clients can straightforward edit your settings.

I work with any PHP array, however I’ve two primary modes: easy PHP associative array like array(‘key1’ => ‘value1’, ‘key2’ => ‘value2’) and a complicated mode, the place you’ll be able to outline attributes like area sort, validation, and so on.

How does it work?

It’s fairly easy. Discover under instance of utilization, then you can too verify instance demos right here, right here and right here.

// 1. Embrace important class
embrace '../courses/Configurator.php';

// 2. Put together 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 occasion passing $settings array
$configurator = new Configurator($settings);
// four. Set configuration file (optionally available, if omitted, config.php shall be used)
// The trail of file is construct utilizing $settings['base_dir'] + $settings['config_dir'] + 'config' + '.php'
// 'config' is under paramter which you go to set
$configurator->setFile('my_config_filename');
// 5. Set language file (non-compulsory if you need translate label and outline)
// The language file ought to be an associative array
$configurator->setLanguage(embrace '../config/language_en.php');
// 6. Load knowledge from file
$configData = $configurator->loadFile();
// 7. Set present config so we will add/edit config
$configurator->setConfig($configData);
// eight. Verify if publish is submitted
if($_POST)

  // 9. Save
  $configurator->saveData($_POST);

Help discussion board:

http://macagoraga.com/forum/forum/37-php-scripts/

NOTE:
I’ve use this product in several PHP tasks in final years, so it will possibly think about secure model. Nevertheless all software program has bugs, and in case you uncover one, please let me know. I’ll do my greatest to repair them in later releases.