PHPackages                             zhengwhizz/laravel-dbdic - 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. [Database &amp; ORM](/categories/database)
4. /
5. zhengwhizz/laravel-dbdic

ActiveLibrary[Database &amp; ORM](/categories/database)

zhengwhizz/laravel-dbdic
========================

mysql、postgresql 数据字典，自动读取数据库信息并显示在网页上，支持导出Html和PDF文件。

1.0.4(6y ago)0275MITPHPPHP ~5.6|~7.0

Since Jul 24Pushed 6y agoCompare

[ Source](https://github.com/zhengwhizz/laravel-dbdic)[ Packagist](https://packagist.org/packages/zhengwhizz/laravel-dbdic)[ Docs](https://github.com/zhengwhizz/laravel-dbdic)[ RSS](/packages/zhengwhizz-laravel-dbdic/feed)WikiDiscussions master Synced yesterday

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

Mysql Postgresql(pgsql) 数据字典自动生成文档，`自动读取数据库信息` 并显示在网页上，支持导出 `Html` 、`PDF` 和 `Markdown` 文件。

> 1. 导出 `Html` 实际为生成并导出一个离线版本的压缩包。
> 2. 导出 `PDF` 使用了 [laravel-snappy](https://github.com/barryvdh/laravel-snappy)扩展包
> 3. 导出 `Markdown` 为数据表增加了锚点链接。

安装
--

[](#安装)

1. 安装包文件

    ```
    $ composer require zhengwhizz/laravel-dbdic
    ```

配置
--

[](#配置)

1. （5.5 以上无需此步）注册 ServiceProvider:

    ```
    Zhengwhizz\DBDic\DBDicServiceProvider::class,
    ```
2. 创建配置文件：

    ```
    php artisan vendor:publish
    ```

    执行命令后会在 `config` 目录下生成两个文件：

    - `laravel-dbdic.php`：本扩展配置文件，用于配置文档底部 `Copyright` 文案和链接。
    - `snappy.php`：[laravel-snappy](https://github.com/barryvdh/laravel-snappy) 的配置文件，用于配置导出 `pdf` 的选项。

        > `pdf.binary` 项配置 `wkhtmltopdf` 执行文件的目录

        > `linux/unix/mac` 系统的执行文件存放于 `项目目录/vendor/h4cc/wkhtmltopdf-[amd64|i386]/bin/` 目录下

        > `wundiws` 系统的执行文件存放于 `项目目录/vendor/wemersonjanuario/wkhtmltopdf-windows/bin/[64bit|32bit]/` 目录下

使用
--

[](#使用)

安装扩展后，浏览器访问 `[http|https]://[your domain or ip]/dbdic`

参考问题
----

[](#参考问题)

1. Q：导出的 `PDF` 文件中文不显示或者乱码？

    A：导致此问题的原因是机器上没有安装中文字体，解决方式如下

    ```
    1、先从本机或者网络上下载所需的中文字体
    2、修改字体文件的权限，使root用户以外的用户也可以使用
    	$ cd /usr/share/fonts/chinese/
    3、建立字体缓存
    	$ sudo mkfontscale
    	$ # 如果提示 mkfontscale: command not found，则需要安装# sudo apt-get install ttf-mscorefonts-installer
    	$ sudo mkfontdir
    	$ sudo fc-cache -fv
    	$ # 如果提示 fc-cache: command not found，则需要安装# sudo apt-get install fontconfig

    ```

参考图
---

[](#参考图)

[![](https://camo.githubusercontent.com/c8a555b5fdcf6d12357f3993d9c74ee294b676925a7cf6a3481bd4ccde05b1cb/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f38613036366134302d313631622d313165372d393263632d6539373865353739313032312e6a7067)](https://camo.githubusercontent.com/c8a555b5fdcf6d12357f3993d9c74ee294b676925a7cf6a3481bd4ccde05b1cb/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f38613036366134302d313631622d313165372d393263632d6539373865353739313032312e6a7067)

[![](https://camo.githubusercontent.com/3dcb13cc1e9c1b49f6f496c1b0f96eaa4fd3587014763591c93c5c0396550b95/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f39356262303064302d313631622d313165372d613835322d3966623936336531333431342e6a7067)](https://camo.githubusercontent.com/3dcb13cc1e9c1b49f6f496c1b0f96eaa4fd3587014763591c93c5c0396550b95/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f39356262303064302d313631622d313165372d613835322d3966623936336531333431342e6a7067)

[![](https://camo.githubusercontent.com/287cbce653234a2198e5ef8588a39439ecc9fd23a151211219fbaf7708e5d96f/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f61326431663733302d313631622d313165372d613130622d3435386531313339636231612e6a7067)](https://camo.githubusercontent.com/287cbce653234a2198e5ef8588a39439ecc9fd23a151211219fbaf7708e5d96f/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f61326431663733302d313631622d313165372d613130622d3435386531313339636231612e6a7067)

[![](https://camo.githubusercontent.com/4f240d85c744cd16404cce42dd8415728340ba4b3be25302627b430db6284a10/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f63643634333964302d313631622d313165372d383361652d3031626634396465366233652e6a7067)](https://camo.githubusercontent.com/4f240d85c744cd16404cce42dd8415728340ba4b3be25302627b430db6284a10/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f63643634333964302d313631622d313165372d383361652d3031626634396465366233652e6a7067)

[![](https://camo.githubusercontent.com/5e8d7301ad5dbad5e7c7a42ca5499944179ce380ba793f84378487885c7818b1/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f65666464383435302d336138372d313165382d386462382d6464633966613066623734342e6a7067)](https://camo.githubusercontent.com/5e8d7301ad5dbad5e7c7a42ca5499944179ce380ba793f84378487885c7818b1/68747470733a2f2f71696e69752e626c6f672e6c65727a656e2e636f6d2f65666464383435302d336138372d313165382d386462382d6464633966613066623734342e6a7067)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~9 days

Total

3

Last Release

2466d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73bd4f8b6d8a0e8180fd0fa6bfc943d89b0016d8ea33ea0ec25699106338464f?d=identicon)[zhengwhizz](/maintainers/zhengwhizz)

---

Top Contributors

[![zhengwhizz](https://avatars.githubusercontent.com/u/663198?v=4)](https://github.com/zhengwhizz "zhengwhizz (6 commits)")

---

Tags

laravelzhengwhizzdbdicdatabase dictionary

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zhengwhizz-laravel-dbdic/health.svg)

```
[![Health](https://phpackages.com/badges/zhengwhizz-laravel-dbdic/health.svg)](https://phpackages.com/packages/zhengwhizz-laravel-dbdic)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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