Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tim168/data-dict
:computer::elephant:mysql数据库,生成PDF、HTML格式数据字典 Mysql database, generate PDF, HTML format data dictionary
https://github.com/tim168/data-dict
data data-dict laravel mysql pdf php thinkphp yii2
Last synced: 20 days ago
JSON representation
:computer::elephant:mysql数据库,生成PDF、HTML格式数据字典 Mysql database, generate PDF, HTML format data dictionary
- Host: GitHub
- URL: https://github.com/tim168/data-dict
- Owner: TIM168
- Created: 2020-04-02T06:42:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T08:51:32.000Z (over 4 years ago)
- Last Synced: 2024-10-11T21:54:00.243Z (about 1 month ago)
- Topics: data, data-dict, laravel, mysql, pdf, php, thinkphp, yii2
- Language: PHP
- Homepage: https://github.com/TIM168/data-dict
- Size: 142 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README-en.md
Awesome Lists containing this project
README
Data Dict
PHP components that can generate data dictionaries in HTML and PDF formats
[![Build Status](https://travis-ci.org/TIM168/data-dict.svg?branch=master)](https://travis-ci.org/TIM168/data-dict)
[![Latest Stable Version](https://poser.pugx.org/tim168/data-dict/v/stable)](https://packagist.org/packages/tim168/data-dict)
[![Total Downloads](https://poser.pugx.org/tim168/data-dict/downloads)](https://packagist.org/packages/tim168/data-dict)
[![Latest Unstable Version](https://poser.pugx.org/tim168/data-dict/v/unstable)](https://packagist.org/packages/tim168/data-dict)
[![License](https://poser.pugx.org/tim168/data-dict/license)](https://packagist.org/packages/tim168/data-dict)
[![composer.lock](https://poser.pugx.org/tim168/data-dict/composerlock)](https://packagist.org/packages/tim168/data-dict)README: [中文](https://github.com/TIM168/data-dict/blob/master/README.md "中文")/[English](https://github.com/TIM168/data-dict/blob/master/README-en.md "English")
## Install
```shell
$ composer require tim168/data-dict
```## Use
require __DIR__ .'/vendor/autoload.php';use Tim168\DataDict\DataDict;
$data = new DataDict('dbHost', 'dbUserName', 'Password', 'dbName','port');
$data->get('fileName','type','lang');## Parameters
dbHost:Database IP address
dbUserName:Database account
Password:Database password
dbName:Database names
port:Database port number (3306 by default)
fileName:fileName
type:html or pdf
lang:zh-CN(chinese)、en(english)
## get html
$data->get('test','html','en');
## get pdf
$data->get('test','pdf','en');
## demo
![pdf demo](https://github.com/TIM168/data-dict/blob/master/src/demo/pdf.png)
![html demo](https://github.com/TIM168/data-dict/blob/master/src/demo/html.png)
## License
**MIT**## End
#### Thank you for giving me a star