configman:基础服务统一配置工具(支持Redis,Memcache,MySQL和RabbitMQ)

时间:2021-05-31 10:40:59
【文件属性】:
文件名称:configman:基础服务统一配置工具(支持Redis,Memcache,MySQL和RabbitMQ)
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-31 10:40:59
PHP configman 基础服务统一配置工具,目前支持Redis,Memcache,MySQL和RabbitMQ 一、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 pass=123456 master=1//主库 db=b2c host=127.0.0.1 port=3306 weight=1 user=b2c pass=123456 master=0//从库 cd example 增加db配置:php add_config.p
【文件预览】:
configman-master
----configman.php(61B)
----example()
--------add_config.php(372B)
--------get_config.php(227B)
----config()
--------config.inc.php(64B)
----cli()
--------compiler.php(127B)
--------commands()
--------config.json(173B)
--------libs()
----README.md(1KB)
----libs()
--------Autoloader.class.php(1KB)
----api()
--------service()
--------BaseServiceConfig.class.php(598B)
----conf_example()
--------redis.ini(24B)
--------mysql()
--------rabbitmq.ini(54B)
--------server()
----bin()
--------configtool(101B)

网友评论