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 2w 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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4490900?v=4)[会尿尿的鱼](/maintainers/jasester)[@jasester](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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