telanflow / laravel-binlog
mysql binlog for laravel
0.2.4
2020-05-27 06:33 UTC
Requires
- php: ^7.2
- ext-bcmath: *
- ext-json: *
- ext-pcntl: *
- ext-posix: *
- ext-swoole: ^4.0
- doctrine/dbal: ^2.9
Requires (Dev)
- mockery/mockery: ^1.2
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.4
- swoole/ide-helper: ^4.4
README
该扩展实现了 mysql replication protocol。
可用于实时监听mysql数据变更、数据同步等场景
Runtime
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]
鸣谢
License
The Laravel-Binlog package is open-sourced software licensed under the MIT license.