vcian/php-db-auditor
Composer 安装命令:
composer require vcian/php-db-auditor
包简介
Database DB Auditor provide leverage to audit your MySql database standards and also provide options to add constraints in table.
README 文档
README
Introduction
- Introducing "PHP DB Auditor" – your go-to solution for meticulous MySQL database system auditing. This powerful PHP package is your key to ensuring the utmost integrity and compliance with MySQL standards and constraints in your database. Dive into the world of database auditing with ease, thanks to its user-friendly command-line interface (CLI).
Key Points
-
Comprehensive Auditing: PHP DB Auditor is a specialized PHP package designed to perform comprehensive audits on MySQL database systems.
-
Thorough Evaluation: It conducts a thorough and detailed evaluation of the entire MySQL database structure.
-
Standards Compliance: The package employs advanced scanning techniques to assess the database's adherence to MySQL standards and constraints.
-
Command-Line Interface (CLI): Users can effortlessly interact with PHP DB Auditor through its intuitive command-line interface, making the auditing process seamless.
-
Constraint Management: PHP DB Auditor empowers you to add essential constraints directly to your MySQL database via the CLI.
-
Detailed Audit Report: Upon completion of the auditing process, the package generates a detailed report.
-
Identifying Non-Compliance: The audit report provides a comprehensive list of tables and columns that fall short of meeting established MySQL standards and constraints.
-
Database Integrity: With PHP DB Auditor, you can proactively maintain the integrity of your database and ensure it aligns with the necessary standards.
Installation
**Requires PHP 8.1+
As a standalone project under 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
As a standalone project under 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
Usage:
See database information
php dbauditor db:summary
See a list of table with standard follow indication
php dbauditor db:standard
See a list of tables with fields, primary, foreign, unique, index constraint.
php dbauditor db:constraint
You can add more constraint to a table.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
We believe in
👇
ACT NOW
PERFECT IT LATER
CORRECT IT ON THE WAY.
Security
If you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
vcian/php-db-auditor 适用场景与选型建议
vcian/php-db-auditor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 46 次下载、GitHub Stars 达 48, 最近一次更新时间为 2023 年 09 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「php」 「mysql」 「DB Audit」 「DB Standards」 「DB Constraints」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vcian/php-db-auditor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vcian/php-db-auditor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vcian/php-db-auditor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
A PSR-7 compatible library for making CRUD API endpoints
PHP module for MySql database
VV database abstraction layer with query builder and DB structure models
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 49
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-29







