easyswoole / apollo
easyswoole component
Installs: 13 899
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: >=7.1.0
- easyswoole/http-client: ^1.3
- easyswoole/spl: ^2.0
Requires (Dev)
- easyswoole/phpunit: ^1.0
- easyswoole/swoole-ide-helper: ^1.2
This package is auto-updated.
Last update: 2024-10-16 03:58:33 UTC
README
安装
composer require easyswoole/apollo
使用
go(function (){ //配置apollo服务器信息 $server = new \EasySwoole\Apollo\Server([ 'server'=>'http://106.12.25.204:8080', 'appId'=>'easyswoole' ]); //创建apollo客户端 $apollo = new \EasySwoole\Apollo\Apollo($server); //第一次同步 var_dump( $apollo->sync('mysql')); //第二次同步,若服务端没有改变,那么返回的结果,isModify标记为fasle,并带有lastReleaseKey var_dump( $apollo->sync('mysql')); });