文件名称:configman:支持Redis,Memcache,MySQL和RabbitMQ
文件大小:21KB
文件格式:ZIP
更新时间:2024-06-19 20:11:20
PHP
configman 基础服务统一配置工具,目前支持Redis,Memcache,MySQL和RabbitMQ,可以通过web或cli方式实现配置文件项的增加,删除,修改,查找。 #特性 支持多种服务配置存储方式 (进行中...) 支持服务的可扩展性 支持cli方式操作配置 支持web方式操作配置 支持API本地调用 支持配置推送方式的可扩展 (进行中...) #用法 一、Api使用方法 Example(以MySQL配置为例): 如果基础服务配置路径: /home/www/conf 则config目录下的config.inc.php中 define('CONF_PATH', '/home/www/conf/'); 如果业务项目为B2C,则mysql配置为b2c.mysql.ini 内容为 db=b2c host=127.0.0.1 port=3306 weight=1 user=b2c
【文件预览】:
configman-master
----api()
--------service()
--------BaseServiceConfig.class.php(598B)
----bin()
--------configtool(101B)
----cli()
--------libs()
--------compiler.php(127B)
--------commands()
----conf_example()
--------server()
--------redis.ini(24B)
--------rabbitmq.ini(54B)
--------mysql()
----configman.php(61B)
----libs()
--------Autoloader.class.php(1KB)
----README.md(2KB)
----example()
--------get_config.php(227B)
--------add_config.php(372B)
----config()
--------config.inc.php(91B)