PHPackages                             wisonlau/binlogtosql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wisonlau/binlogtosql

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wisonlau/binlogtosql
====================

A tool to change binlog to sql

09PHP

Since Jan 2Pushed 8y agoCompare

[ Source](https://github.com/wisonlau/BinlogToSql)[ Packagist](https://packagist.org/packages/wisonlau/binlogtosql)[ RSS](/packages/wisonlau-binlogtosql/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

介绍
--

[](#介绍)

这是一个可以帮助我们把我们的binlog文件的内容转换为可识别的sql语句的工具包。

安装
--

[](#安装)

1. composer 安装

```
composer require wisonlau/BinlogToSql

```

2. 直接下载 clone 下来即可。

使用
--

[](#使用)

首先在`Conf.php`中配置自己的`MySql`信息:

```
const __DATABASE__ = 'test';
const __TABLE__ = 'student';
const __USER__ = 'root';
const __PASSWORD__ = 123456;
const __HOST__ = '127.0.0.1';
const __PORT__ = 3309;
```

调用`Binlog`的`start`方法:

```
$binlog = new \BinlogToSql\Binlog();
$binlog->start();
```

其中`start`方法可以写入一些参数，比如设置起始时间和起始`position`，或者指定的表。

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8781ca13a2d63ed7eb3eb9738331e8b375ade5f834ea204988e1936030dd1c0e?d=identicon)[wisonlau](/maintainers/wisonlau)

---

Top Contributors

[![wisonlau](https://avatars.githubusercontent.com/u/26670866?v=4)](https://github.com/wisonlau "wisonlau (4 commits)")[![p99993](https://avatars.githubusercontent.com/u/22674454?v=4)](https://github.com/p99993 "p99993 (1 commits)")

### Embed Badge

![Health badge](/badges/wisonlau-binlogtosql/health.svg)

```
[![Health](https://phpackages.com/badges/wisonlau-binlogtosql/health.svg)](https://phpackages.com/packages/wisonlau-binlogtosql)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
