PHPackages                             hnndy/database-tool - 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. hnndy/database-tool

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

hnndy/database-tool
===================

A Database Tool

051PHP

Since Nov 8Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

database-tool
=============

[](#database-tool)

数据库，列表，优化，修复小工具

Installing
----------

[](#installing)

```
$ composer require hnndy/database-tool -vvv
```

Usage
-----

[](#usage)

\##1.获取数据库中的所有表

```
$datas = app('databasetool')->getDatabaseTables();
```

返回结果

```
[
    [statue] => success
    [message] => 获取成功！
    [results] => []
    [total] => 80KB
]
```

\##2.优化选中的表

```
$result = app('databasetool')->optimize('dou_admin');
or
$result = app('databasetool')->optimize(['dou_admin', 'dou_admin_log', 'dou_article']);
```

返回结果

```
[
    [statue] => success
    [message] => 优化成功！
    [result] => []
]
```

\###3.修复选中的表

```
$result = app('databasetool')->repair('dou_admin');
or
$result = app('databasetool')->repair(['dou_admin', 'dou_admin_log', 'dou_article']);
```

返回结果

```
[
    [statue] => success
    [message] => 修复成功！
    [result] => []
]
```

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/195023a3f7fcba438c0addfa90929d93f2619b5d8cdfd27b7206222c01085dbf?d=identicon)[jasester](/maintainers/jasester)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hnndy-database-tool/health.svg)

```
[![Health](https://phpackages.com/badges/hnndy-database-tool/health.svg)](https://phpackages.com/packages/hnndy-database-tool)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

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

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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