Skip to content

Add mysql binlog event listening for Laravel ( 为Laravel框架添加Mysql Binlog事件监听 )

License

Notifications You must be signed in to change notification settings

telanflow/laravel-binlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel-Binlog

php-badge License

该扩展实现了 mysql replication protocol。

可用于实时监听mysql数据变更、数据同步等场景

Runtime

PHP Laravel Mysql Swoole
>= 7.2 >=5.5 5.5/5.6/5.7 >=4.2

Install

composer require telanflow/laravel-binlog

Publish

默认设置在 config/binlog.php 中。将此文件复制到您自己的配置目录以修改值。

你可以使用这个命令发布配置:

php artisan vendor:publish --provider="Telanflow\Binlog\LaravelServiceProvider"

Documentation

Please see Wiki

Usage

php artisan mysql:binlog [start|stop|restart|infos|clean]

鸣谢

php-mysql-replication

laravel-swoole

License

The Laravel-Binlog package is open-sourced software licensed under the MIT license.