定制 kpacha/suricate-config 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kpacha/suricate-config

Composer 安装命令:

composer require kpacha/suricate-config

包简介

Resilent configuration system based on zookeeper (and suricate!)

README 文档

README

A simple config module with an integrated suricate service discovery system for php

Build Status Dependency Status

#Requirements

#Installation

##Standalone

##As a library (recomended)

Include the kpacha/suricate-config package in your compose.json with all the dependencies of your project

"require":{
    "kpacha/suricate-config": "~0.1"
}

###Git installation

Clone the repo

$ git clone https://github.com/kpacha/suricate-config.git

Install the php dependencies

$ cd suricate-config
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

###Composer installation

Create a project with composer

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project kpacha/suricate-config [directory]

Remeber to set the [directory] parameter or composer will create the project in your current path.

#Config files

Just set the value \\Kpacha\\Suricate\\Config\\ServiceManager to your service-manager config param and fix the url of your suricate server. Visit kpacha/config for more info.

#Usage

##Config module

This package is a transparent extension for kpacha/config module

##Console

The kpacha/suricate-php-sdk package comes with a simple client and several console commands bundled in a simple app. Check the project web for more info.

The kpacha/suricate-config packages extends the kpacha/suricate-php-sdk and adds the Update command from kpacha/config in order to expose a clean CLI so you could add a cron to:

  • Send a periodic heartbeat to notify the suricate server the node is up. Check the inline help for the command $ bin/suricate-config s:h --help
  • Update the service info querying the suricate server for the services listed in the service-name area of your suricate_services.yml file with $ bin/suricate-config c:u /path/to/config/dir

Run the suricate-config script to trigger any console command.

Visit the suricate-php-sdk project for more info.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固