Apollo configuration center

EasySwoole supports apollo data center. Synchronization can be configured according to this component.



composer require easyswoole/apollo


go(function (){
    //Configure apollo server information
    $server = new \EasySwoole\Apollo\Server([
    //Create an apollo client
    $apollo = new \EasySwoole\Apollo\Apollo($server);
    //First sync
    var_dump( $apollo->sync('mysql'));
    //The second synchronization, if the server has not changed, then the result returned, isModify marked as fasle, with lastReleaseKey
    var_dump( $apollo->sync('mysql'));

Can start a timer in the process to achieve automatic timing update