Download the PHP package ptx/lumen-db-doc without Composer
On this page you can find all versions of the php package ptx/lumen-db-doc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ptx/lumen-db-doc
More information about ptx/lumen-db-doc
Files in ptx/lumen-db-doc
Package lumen-db-doc
Short Description 引入ddoc,自动读取数据库字典
License MIT
Homepage https://github.com/putianxin/lumen-db-doc.git
Informations about the package lumen-db-doc
引入DDOC,自动读取数据库信息
并显示在网页上,支持导出 Html
、PDF
和 Markdown
文件。
- 导出
Html
实际为生成并导出一个离线版本的压缩包。- 导出
- 导出
Markdown
为数据表增加了锚点链接。
安装
- 安装包文件
配置
-
注册 ServiceProvider:
-
创建配置文件:
执行命令后会在
config
目录下生成两个文件:-
laravel-ddoc.php
:本扩展配置文件,用于配置文档底部Copyright
文案和链接。 -
snappy.php
: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]/ddoc
参考问题
-
Q:导出的
PDF
文件中文不显示或者乱码?A:导致此问题的原因是机器上没有安装中文字体,解决方式如下
参考图
License
The MIT License (MIT). Please see License File for more information.
All versions of lumen-db-doc with dependencies
php Version ~5.6|~7.0|~7.1