2017 © Pedro Peláez
 

project php-apollo

apollo php cilent.

image

group-co/php-apollo

apollo php cilent.

  • Friday, May 4, 2018
  • by fucongcong
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-apollo

环境依赖

  • php > 5.3
  • swoole

composer安装

composer require group-co/php-apollo

使用

<?php

use Group\ApolloConfig;

require 'vendor/autoload.php';

$config = new ApolloConfig("http://localhost:8080", "groupco");
//每2秒轮询一次
$config->poll(2);

swoole_timer_tick(1000, function () use ($config) {
    $val = $config->get("application", "environment1", "2");
    var_dump($val);
});

The Versions

04/05 2018

dev-master

9999999-dev

apollo php cilent.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

php group-co apollo

04/05 2018

v0.0.1

0.0.1.0

apollo php cilent.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

php group-co apollo