vcian/laravel-db-auditor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vcian/laravel-db-auditor

Composer 安装命令:

composer require vcian/laravel-db-auditor

包简介

Database DB Auditor provide leverage to audit your MySql,sqlite, PostgreSQL database standards and also provide options to add constraints in table.

README 文档

README

Logo Laravel DB Auditor

Packagist License Total Downloads

Introduction

  • This package provides to audit process of reviewing and evaluating a mysql, sqlite and postgresql database system.
  • DB Auditor scan your mysql/sqlite/postgresql database and give insights of standards, constraints and provide option to add the constraints through CLI.
  • The result of audit process shows list of tables & columns which doesn't have proper standards.

Installation & Usage

Requires PHP 8.0+ | Laravel 8.0+

Require Laravel DB Auditor using Composer:

composer require --dev vcian/laravel-db-auditor

Usage:

You can access DB Auditor using below artisan commands.

php artisan db:audit

This command give you options to select feature like check the database standards or check the constraint.

Now, you can skip tables which you don't want to check. Add skip table name in the .db-auditor.php file.

Note:

If you want to check standalone feature then you can execute below artisan command one by one.

php artisan db:constraint

This command gives you result with list of tables with primary,foreign,unique,index constraint.

You can add more constraint to the table by seeing existing constraint with table.

Below example give insights about the how to see constraints in table and how to add.

Note :-

  • SQLite does not allow to define PRIMARY KEY or FOREIGN KEY into a existing table.
  • Add constraint option is not support for PostgreSQL. Will release soon.

Logo Laravel DB Auditor

Logo Laravel DB Auditor

Logo Laravel DB Auditor

Logo Laravel DB Auditor

php artisan db:standard

This command give you result with list of table with standard follow indication.

You can also see table specific column name which doesn't have standard followed.

Below example give insights of database standards reports and suggestions.

Logo Laravel DB Auditor

Logo Laravel DB Auditor

Logo Laravel DB Auditor

php artisan db:track

This command give you the track of the database files. Like when it's created with how many field in which table or whom created. this type of information show in the result.

You can also filter with --table=, --action=, --status=. Note: "created by" return the github username and if it's not git repo than it shows system username.

Track Default

Track Default

Track Default

Track Default

Note:

You have to set your database name with DB_DATABASE parameter in you laravel .env file to use this feature.

ACCESS WEB PAGE

You can also access this feature through WEB UI. To access web UI, kindly execute below command.

php artisan vendor:publish --tag=public

select "db-auditor"

Route - To access the web UI "/laravel-db-auditor"

Laravel DB Auditor UI

Laravel DB Auditor UI

Laravel DB Auditor UI

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/laravel-db-auditor 适用场景与选型建议

vcian/laravel-db-auditor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37.94k 次下载、GitHub Stars 达 282, 最近一次更新时间为 2023 年 04 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「database」 「php」 「mysql」 「sqlite」 「postgresql」 「pgsql」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 vcian/laravel-db-auditor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vcian/laravel-db-auditor 我们能提供哪些服务?
定制开发 / 二次开发

基于 vcian/laravel-db-auditor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 37.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 284
  • 点击次数: 28
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 282
  • Watchers: 3
  • Forks: 28
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-18