PHP code example of luoxiaojun1992 / yii2-tars

1. Go to this page and download the library: Download luoxiaojun1992/yii2-tars library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

luoxiaojun1992 / yii2-tars example snippets


   'registries' => [
        [
            'type' => 'kong',
            'url' => 'http://kong:8001/upstreams/tars_mysql8/targets', //根据实际情况填写
        ]
   ]
   

   'log_level' => ['info']
   

   'log_interval' => 1000