承接 phptars/tars-config 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phptars/tars-config

Composer 安装命令:

composer require phptars/tars-config

包简介

tars的配置拉取

README 文档

README

Brief introduction

Tar config is used to obtain the configuration distributed from the tar management platform. Usually use the business configuration corresponding to the distribution environment, such as mysql, redis address, port and other information

Instructions for use

<?php

	require_once "../vendor/autoload.php";
	$config = new \Tars\client\CommunicatorConfig();
	$config->setLocator("tars.tarsregistry.QueryObj@tcp -h 172.16.0.161 -p 17890"); //The configuration here is the tar master address
	$config->setModuleName("tedtest"); //The primary call name is used to display the secondary primary call report.
	$config->setCharsetName("UTF-8"); //character set

	$conigServant = new \Tars\config\ConfigServant($config); 
	$result = $conigServant->loadConfig("PHPTest",'helloTars','hhh.txt',$configtext); //The parameters are appName (service name part I), server name (service name part II), file name, and the last is reference parameter, which is the content of the output configuration file.
	var_dump($configtext);

	$config->setSocketMode(2); // setup socket model为2 swoole tcp client,1为socket,3为swoole protocol client
	$conigServant = new \Tars\config\ConfigServant($config);
	$result = $conigServant->loadConfig("PHPTest",'helloTars','hhh.txt',$configtext);
	var_dump($configtext);

统计信息

  • 总下载量: 10.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-09-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固