资源图标

预览 PHP Configurator 等待分享

无下载权限

Hi there!
My name is PHP Configurator and I can help you to manage your configuration files into your PHP projects.
All your projects have some configurations settings which you can save on database or save under files in format PHP, ini, yaml, xml, etc.
You know, the most fast way is using PHP array, but give your customers a PHP array file can be hard to edit.
They need FTP program, an editor and know what to change. Without considering that they can wrong edit that files.
No worries!
Thanks to me, you can just create your PHP array organized into files, and I will create a nice user interface where your customers can easy edit your settings.
I work with any PHP array, but I have two basic modes: simple PHP associative array like array(‘key1’ => ‘value1’, ‘key2’ => ‘value2’) and an advanced mode, where you can define attributes like field type, validation, etc.
How does it work?
It’s pretty simple. Find below example of usage, then you can also check example demos here, here and here.


include '../classes/Configurator.php';

$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
];

$configurator = new Configurator($settings);
$configurator->setFile('my_config_filename');
$configurator->setLanguage(include '../config/language_en.php');
$configData = $configurator->loadFile();
$configurator->setConfig($configData);
if($_POST)
{
$configurator->saveData($_POST);
}
else
{
$configurator->displayForm();
}

Support forum:
http://macagoraga.com/forum/forum/37-php-scripts/
NOTE: I have use this product in different PHP projects in last years, so it can consider stable version. However all software has bugs, and if you discover one, please let me know. I will do my best to fix them in later releases.
作者
0daydown
下载
0
查看
62
首次发布
最后更新
评分
0.00 星 0 星

来自0daydown的更多资源

ZIY 会员微信群