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 today

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 35% 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

1678d 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

[spipu/html2pdf

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

1.8k10.4M40](/packages/spipu-html2pdf)[iio/libmergepdf

Library for merging multiple PDFs

40813.3M11](/packages/iio-libmergepdf)[elibyy/tcpdf-laravel

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

3602.6M5](/packages/elibyy-tcpdf-laravel)[aimeos/ai-controller-jobs

Aimeos job controllers for long running tasks

965334.3k8](/packages/aimeos-ai-controller-jobs)[civicrm/civicrm-core

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

718267.0k10](/packages/civicrm-civicrm-core)[creagia/laravel-sign-pad

Laravel package for of E-Signature with Signature Pad and Digital Certified Sign with TCPDF

53989.3k](/packages/creagia-laravel-sign-pad)

PHPackages © 2026

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