承接 rafidalridwan/laravel-db-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rafidalridwan/laravel-db-client

最新稳定版本:v1.0.1

Composer 安装命令:

composer require rafidalridwan/laravel-db-client

包简介

Lightweight database client for Laravel

README 文档

README

A lightweight database client package for Laravel that provides a Blade UI to access your connected database, view tables, manage data, and run SQL queries.

Repository: rafidalridwan/laravel-db-client

Features

  • 📊 View All Tables - Browse all database tables with row counts and column information
  • 🔍 Table Data View - View table data with pagination
  • ✏️ Add/Edit/Delete Rows - Full CRUD operations on table data
  • 🔐 SQL Query Runner - Execute SQL queries with security checks
  • 🛠️ Artisan Commands - Run Laravel Artisan commands through the UI
  • 🔒 Security - Built-in SQL injection protection and read-only mode support
  • 📱 Responsive UI - Modern, clean interface

Installation

  1. Install the package via Composer:
composer require rafidalridwan/laravel-db-client

The package is auto-discovered by Laravel.

  1. Publish assets:
php artisan vendor:publish --tag=dbclient

Usage

  1. Navigate to /dbclient in your browser (make sure you're authenticated if using auth middleware)

  2. Tables View - Lists all tables with row counts

    • Click "View" to see table data
    • View table structure in collapsible section
    • Add, edit, or delete rows
  3. SQL Query - Run custom SQL queries

    • Type your query and click "Execute"
    • Results are displayed in a table
    • Execution time is shown
    • Dangerous operations are blocked in read-only mode
  4. Artisan - Run Laravel Artisan commands

    • Select from allowed commands
    • View command output

Security Features

  • SQL Guard - Blocks dangerous SQL operations (DROP, TRUNCATE, ALTER, CREATE, etc.)
  • Read-Only Mode - When enabled, only SELECT queries are allowed
  • Table Name Sanitization - Prevents SQL injection through table names
  • Middleware Protection - Routes are protected by configurable middleware

Routes

  • GET /dbclient - Tables list
  • GET /dbclient/table/{table} - View table data
  • GET /dbclient/table/{table}/rows - Get paginated rows (JSON)
  • GET /dbclient/table/{table}/row/{id} - Get single row (JSON)
  • POST /dbclient/table/{table}/insert - Insert new row
  • PUT /dbclient/table/{table}/{id}/update - Update row
  • DELETE /dbclient/table/{table}/{id}/delete - Delete row
  • GET /dbclient/query - SQL query interface
  • POST /dbclient/query/run - Execute SQL query
  • GET /dbclient/artisan - Artisan commands interface
  • POST /dbclient/artisan/run - Run Artisan command

📸 Screenshots

📊 Tables Overview

Tables Overview

🔍 Table Data View

Table Data View

🏗️ Table Structure

Table Structure

💻 SQL Query Runner

SQL Query Runner

🛠 Artisan Commands

Artisan Commands

Requirements

  • PHP >= 8.1
  • Laravel >= 8.0
  • jQuery (included via CDN in views)

License

MIT

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固