vcian/php-db-auditor

数据库DB审计工具提供审计MySQL数据库标准的便利,并提供在表中添加约束的选项。

v2.1.0 2023-11-21 11:17 UTC

This package is auto-updated.

Last update: 2024-09-15 09:45:50 UTC


README

Logo PHP DB Auditor

Packagist License Total Downloads

简介

  • 介绍"PHP DB Auditor" – 您精心审计MySQL数据库系统的首选解决方案。这个强大的PHP包是您确保数据库中MySQL标准和约束的最高完整性和合规性的关键。凭借其用户友好的命令行界面(CLI),轻松进入数据库审计的世界。

要点

  1. 全面审计:PHP DB Auditor是一个专门用于对MySQL数据库系统进行全面审计的PHP包。

  2. 彻底评估:它对整个MySQL数据库结构进行全面和详细的评估。

  3. 标准合规性:该包采用高级扫描技术来评估数据库对MySQL标准和约束的遵循情况。

  4. 命令行界面(CLI):用户可以通过直观的命令行界面轻松与PHP DB Auditor交互,使审计过程无缝进行。

  5. 约束管理:PHP DB Auditor使您能够通过CLI直接向MySQL数据库添加必要约束。

  6. 详细审计报告:审计过程完成后,该包生成详细报告。

  7. 识别不合规项:审计报告提供了不符合已建立MySQL标准和约束的表和列的完整列表。

  8. 数据库完整性:使用PHP DB Auditor,您可以主动维护数据库的完整性,并确保其符合必要标准。

安装

**需要 PHP 8.1+

作为Linux下的独立项目

# create directory (feel free to give your own)
mkdir dbauditor
cd dbauditor

# install package
composer require vcian/php-db-auditor

# create symbolic links
ln -s vendor/vcian/php-db-auditor/dbauditor dbauditor
ln -s vendor/vcian/php-db-auditor/src/config.php config.php

# edit config.php to configure the database settings

作为Windows下的独立项目

# create directory (feel free to give your own)
mkdir dbauditor
cd dbauditor

# install package
composer require vcian/php-db-auditor

# create symbolic links
mklink vendor/vcian/php-db-auditor/dbauditor dbauditor
mklink vendor/vcian/php-db-auditor/src/config.php config.php

# edit config.php to configure the database settings

使用方法

查看数据库信息

php dbauditor db:summary

PHP DB Auditor Standard UI

查看遵循标准的表列表

php dbauditor db:standard

PHP DB Auditor Standard UI

PHP DB Auditor Standard UI

PHP DB Auditor Standard UI

查看具有字段、主键、外键、唯一键和索引约束的表列表。

php dbauditor db:constraint

PHP DB Auditor Constraint UI

PHP DB Auditor Constraint UI

您可以向表中添加更多约束。

PHP DB Auditor Constraint UI

PHP DB Auditor Constraint UI

变更日志

有关最近更改的更多信息,请参阅 CHANGELOG

贡献

有关详细信息,请参阅 CONTRIBUTING

   We believe in
        👇
      ACT NOW
  PERFECT IT LATER
CORRECT IT ON THE WAY.

安全

如果您发现任何与安全相关的问题,请通过电子邮件 ruchit.patel@viitor.cloud 而不是使用问题跟踪器。

致谢

许可证

MIT许可证(MIT)。有关更多信息,请参阅 许可证文件