church / apollo-client
apollo client for php
Installs: 135
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/church/apollo-client
Requires
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ^9.5
README
环境要求
- php >= 7.4
安装
composer require church/apollo-client
使用
$client = new Client('http://127.0.0.1:8082', 'appid', 'tech.oss', 'app secret'); $result = $client->getFromCache(); $result = $client->getWithoutCache(); //必须在CLI模式下运行 $client->autoPull(['tech.oss', 'tech.baidu', 'tech.sms'], function($configuration) { $configuration = json_decode($configuration, true); $this->assertTrue(boolval($configuration)); });