PHPackages                             selfim/data\_dictionary - 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. selfim/data\_dictionary

ActiveLibrary

selfim/data\_dictionary
=======================

PHP导出MySQL数据库数据字典 可以导出为Word文档和Excel表格以及Markdown、HTML格式

v5.1.0(4y ago)124↓100%MITPHPPHP &gt;=7.0

Since Aug 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/selfim/data_dictionary)[ Packagist](https://packagist.org/packages/selfim/data_dictionary)[ RSS](/packages/selfim-data-dictionary/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Introduction
============

[](#introduction)

PHP导出MySQL数据库数据字典 可以导出为Word文档和Excel表格以及Markdown、HTML格式

Install
=======

[](#install)

```
composer require selfim/data_dictionary

```

Demo
====

[](#demo)

```
require __DIR__ . '/vendor/autoload.php';
use DictionaryExport\DataDict;

//默认为Markdown格式
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->make();

//导出word
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->make('doc');

//导出excel
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->make('xls');

//输出为html
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->make('html');

//浏览器输出pdf
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->make('pdf');

//导出单个表
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->setExportTable('tablename')
    ->make('html');

//导出指定表
DataDict::init(['dbname'=>'your database','host'=>'your host','user'=>'username','password'=>'password'])
    ->setExportTables(['tablename','tablename1'])
    ->make('html');

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~1 days

Total

6

Last Release

1725d ago

Major Versions

v1.0.0 → v2.0.02021-08-11

v2.0.0 → v3.0.02021-08-11

v3.0.0 → v4.0.02021-08-12

v4.0.0 → v5.0.02021-08-18

PHP version history (2 changes)v1.0.0PHP 8.0.6

v2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/95002ec2446e4501e19479a6990e087f955a987cace17863cb768732754ea8bb?d=identicon)[selfim](/maintainers/selfim)

---

Top Contributors

[![selfim](https://avatars.githubusercontent.com/u/10451422?v=4)](https://github.com/selfim "selfim (16 commits)")[![gitlester](https://avatars.githubusercontent.com/u/20339170?v=4)](https://github.com/gitlester "gitlester (8 commits)")

### Embed Badge

![Health badge](/badges/selfim-data-dictionary/health.svg)

```
[![Health](https://phpackages.com/badges/selfim-data-dictionary/health.svg)](https://phpackages.com/packages/selfim-data-dictionary)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.4k37.3k](/packages/matomo-matomo)[spipu/html2pdf

Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE

1.8k10.6M44](/packages/spipu-html2pdf)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[iio/libmergepdf

Library for merging multiple PDFs

40813.6M13](/packages/iio-libmergepdf)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)

PHPackages © 2026

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