PHPackages                             tim168/data-dict - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. tim168/data-dict

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

tim168/data-dict
================

A plug-in that generates a data dictionary

1.0.0(6y ago)16132MITPHPPHP &gt;=5.6CI failing

Since Apr 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/TIM168/data-dict)[ Packagist](https://packagist.org/packages/tim168/data-dict)[ RSS](/packages/tim168-data-dict/feed)WikiDiscussions master Synced today

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

 Data Dict
==========

[](#-data-dict)

 可以生成HTML、PDF格式数据字典的PHP组件

[![Build Status](https://camo.githubusercontent.com/fc6408fdcc36564513031abc8068c3fc51a92bf7f93026502455001efe36231f/68747470733a2f2f7472617669732d63692e6f72672f54494d3136382f646174612d646963742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TIM168/data-dict)[![Latest Stable Version](https://camo.githubusercontent.com/9759f5cf82869c127ec5c2e997e745683ff80e30411e3786031f1b77ecd50af4/68747470733a2f2f706f7365722e707567782e6f72672f74696d3136382f646174612d646963742f762f737461626c65)](https://packagist.org/packages/tim168/data-dict)[![Latest Unstable Version](https://camo.githubusercontent.com/2a9aa8b0c5bde3b748f9f4f216e5f8234575d47c5492fb586862c8b7e0aeb09a/68747470733a2f2f706f7365722e707567782e6f72672f74696d3136382f646174612d646963742f762f756e737461626c65)](https://packagist.org/packages/tim168/data-dict)[![License](https://camo.githubusercontent.com/de38244ee093baf7d19b597f6a8dbf50958f3a4a344df353bb8dacec1a87c87e/68747470733a2f2f706f7365722e707567782e6f72672f74696d3136382f646174612d646963742f6c6963656e7365)](https://packagist.org/packages/tim168/data-dict)[![composer.lock](https://camo.githubusercontent.com/336482b634b091cc1f168a068832a46172efe5293077fed6485f143f4363485e/68747470733a2f2f706f7365722e707567782e6f72672f74696d3136382f646174612d646963742f636f6d706f7365726c6f636b)](https://packagist.org/packages/tim168/data-dict)[![](https://camo.githubusercontent.com/d1f5a756cc28c298996148c17e2e8370b07d260f31012dc7f5f18e4ccc39ae22/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344352e362d626c7565)](https://www.php.net/)

README: [中文](https://github.com/TIM168/data-dict/blob/master/README.md "中文")/[English](https://github.com/TIM168/data-dict/blob/master/README-en.md "English")

安装
--

[](#安装)

```
$ composer require tim168/data-dict
```

使用
--

[](#使用)

```
require __DIR__ .'/vendor/autoload.php';

use Tim168\DataDict\DataDict;

$data = new DataDict('dbHost', 'dbUserName', 'Password', 'dbName','port');
$data->get('fileName','type','lang');

```

参数说明
----

[](#参数说明)

```
dbHost：数据库IP地址
dbUserName：数据库账号
Password：数据库密码
dbName：数据库名称
port：数据库端口号（默认为3306）
fileName：文件名
type：html或pdf
lang：zh-CN（中文）、en（英文）

```

获取html
------

[](#获取html)

```
$data->get('test','html','zh-CN');

```

获取pdf
-----

[](#获取pdf)

```
$data->get('test','pdf','zh-CN');

```

示例图
---

[](#示例图)

[![pdf 示例图](https://github.com/TIM168/data-dict/raw/master/src/demo/pdf.png)](https://github.com/TIM168/data-dict/blob/master/src/demo/pdf.png)

[![html 示例图](https://github.com/TIM168/data-dict/raw/master/src/demo/html.png)](https://github.com/TIM168/data-dict/blob/master/src/demo/html.png)

License
-------

[](#license)

**MIT**

后语
--

[](#后语)

#### 欢迎Star

[](#欢迎star)

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2327d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7a4edb6b1ea94a522eb4f5b528f8d24c3fd1e096c1eaf8601b716cfd28ba71e?d=identicon)[codefarmer](/maintainers/codefarmer)

---

Top Contributors

[![suppermoment](https://avatars.githubusercontent.com/u/67251942?v=4)](https://github.com/suppermoment "suppermoment (2 commits)")[![TIM168](https://avatars.githubusercontent.com/u/20741518?v=4)](https://github.com/TIM168 "TIM168 (1 commits)")

---

Tags

datadata-dictlaravelmysqlpdfphpthinkphpyii2

### Embed Badge

![Health badge](/badges/tim168-data-dict/health.svg)

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

###  Alternatives

[pestphp/pest

The elegant PHP Testing Framework.

11.6k77.3M24.5k](/packages/pestphp-pest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k43.6M45.8k](/packages/orchestra-testbench)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2023.2M367](/packages/drupal-core-dev)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)[abydahana/aksara

Aksara is a modern, developer-friendly framework and CMS built on CodeIgniter 4, featuring rapid CRUD development, modular architecture, smart routing, flexible access control, API integration, and an AI assistant to make content management faster and smarter.

1141.2k](/packages/abydahana-aksara)

PHPackages © 2026

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