PHPackages                             dcrphp/data-to-db - 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. dcrphp/data-to-db

ActiveLibrary

dcrphp/data-to-db
=================

多源数据同步到数据库

1.0.1-alpha2(5y ago)03MITPHPPHP ^7.0

Since Jul 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dcrphp/data-to-db)[ Packagist](https://packagist.org/packages/dcrphp/data-to-db)[ RSS](/packages/dcrphp-data-to-db/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

DcrPHP/DataToDb 多源数据同步到数据库(mysql,sqlite,mssql,oracle等)
1、支持api返回的数据同步到数据库
2、支持数据库同步到数据库

1、安装
----

[](#1安装)

 composer require dcrphp/data-to-db
 如果非正式版本无法安装请：
 composer config minimum-stability dev
 composer config prefer-stable true

3、配置
----

[](#3配置)

 请看example/config/下的案例

4、使用
----

[](#4使用)

 请看example/index.php

5、说明
----

[](#5说明)

 如果要实现自己的同步逻辑，请在src/Handler中实现。比如你要添加一个对config中handler=my类型的处理，请在src/Handler添加My的类，实现getDataList就可以

6、已知问题
------

[](#6已知问题)

 1、大量数据的同步要优化

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~29 days

Total

2

Last Release

2089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a3b371e27394bd968db9fe1df3d767971f67df3b9fc34aa18273da2792b7e3d?d=identicon)[dcrphp](/maintainers/dcrphp)

---

Top Contributors

[![junqing124](https://avatars.githubusercontent.com/u/6613893?v=4)](https://github.com/junqing124 "junqing124 (12 commits)")

### Embed Badge

![Health badge](/badges/dcrphp-data-to-db/health.svg)

```
[![Health](https://phpackages.com/badges/dcrphp-data-to-db/health.svg)](https://phpackages.com/packages/dcrphp-data-to-db)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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