PHPackages                             phpple/altable - 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. phpple/altable

ActiveLibrary

phpple/altable
==============

v0.1.9(4y ago)8292MITPHPCI failing

Since Aug 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/phpple/altable)[ Packagist](https://packagist.org/packages/phpple/altable)[ RSS](/packages/phpple-altable/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (9)Used By (0)

Phpple Altable
==============

[](#phpple-altable)

本项目用来对通过mysqldump出来的表结构数据进行解析，分析出数据库、数据表、字段、主键、索引等信息。

[![Latest Stable Version](https://camo.githubusercontent.com/9df464eec8aa50643342ee72c704fb89846b54b132c42eb298c82f332291a3ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706870706c652f616c7461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpple/altable)[![Minimum PHP Version](https://camo.githubusercontent.com/86e7d829a466cacd5658a22073e27d49d39dac72cc18216ac4963ed5463c5bbc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/b2a182f89ec86ffd1ae9ee020eb2100bb06a3fa4d3638c7d91b4d2dda732fc68/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f706870706c652f616c7461626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phpple/altable)[![codecov](https://camo.githubusercontent.com/71bedde2d91e3f04883fb62d814b51b86121e59bbe3e75e9e1511b8018255a59/68747470733a2f2f636f6465636f762e696f2f67682f706870706c652f616c7461626c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/phpple/altable)

使用步骤
----

[](#使用步骤)

composer引入项目

```
composer require phpple/altable
```

通过mysqldump导出需要的表结构：

```
mysqldump --all-databases --no-data > dump.sql
```

编写php脚本分析数据库结构

```
