1. Go to this page and download the library: Download easyswoole/mysqli-pool 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/ */
easyswoole / mysqli-pool example snippets
use EasySwoole\Mysqli\Config;
use EasySwoole\MysqliPool;
$config1 = new Config();
$config2 = new Config;
Mysql::getInstance()->register('mysql1',$config1);
Mysql::getInstance()->register('mysql2',$config2);