1. Go to this page and download the library: Download userqq/mysql-binlog 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/ */
userqq / mysql-binlog example snippets
use UserQQ\MySQL\Binlog\Config;
$config = (new Config())
->withUser('root')
->withPassword('toor');
withUser(string $user): static // Database user with replication privileges