PHPackages                             httpsnader1/database-controllers - 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. httpsnader1/database-controllers

ActiveLibrary[Database &amp; ORM](/categories/database)

httpsnader1/database-controllers
================================

Control your laravel database

v1.7(2mo ago)2152—8.3%MITBladePHP ^8.0

Since Apr 7Pushed 2mo agoCompare

[ Source](https://github.com/httpsnader1/database-controllers)[ Packagist](https://packagist.org/packages/httpsnader1/database-controllers)[ RSS](/packages/httpsnader1-database-controllers/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (10)Versions (14)Used By (0)

Laravel Database Controllers
============================

[](#laravel-database-controllers)

A powerful Laravel package to manage your database directly from your dashboard. Easily view tables, manage records, export/import backups, and more.

Features
--------

[](#features)

### 📊 Database Overview

[](#-database-overview)

- **Real-time Statistics**: View total number of tables, total records, and current database size.
- **Environment Details**: Quick access to connection details (Host, Port, Database, Driver) and PHP/Laravel versions.
- **Backup Status**: See the date of your most recent backup at a glance.

### 🗄️ Advanced Table Management

[](#️-advanced-table-management)

- **Smart Browsing**: Explore all tables in your database with an intuitive UI.
- **Full CRUD Support**: Add, Edit, and Delete records effortlessly.
- **Smart Field Handling**:
    - **Automatic Hashing**: Automatically hashes fields named `password`.
    - **Timestamps**: Handles `created_at` and `updated_at` automatically.
    - **Primary Key Detection**: Support for MySQL and SQLite primary key identification.
- **Bulk Operations**: Perform bulk deletes or truncate entire tables with foreign key constraint safety.
- **Powerful Filtering**: Filter records using operators like `LIKE`, `IN`, `=`, `IS NULL`, and `IS NOT NULL`.
- **Flexible Sorting**: Sort data by any column in ascending or descending order.

### 📂 Backup &amp; Export

[](#-backup--export)

- **Flexible Exports**: Choose between exporting the full database or just the structure.
- **Multiple Formats**: Support for both standard `.sql` files and compressed `.zip` archives.
- **Smart Exclusions**: Easily exclude specific tables (like logs or sessions) from your backups to keep them lightweight.
- **Backup Library**: View, download, or delete previous backups directly from the dashboard.

### 🔄 Import &amp; Restore

[](#-import--restore)

- **File Uploads**: Import `.sql` or `.zip` files directly through the browser.
- **Local Restoration**: Restore your database from any existing local backup with a single click.
- **Background Jobs**: Support for background processing for large imports to prevent timeout issues.
- **CLI Power**: Includes a specialized `db:restore` artisan command for massive database files.

### 🛡️ Security &amp; Localization

[](#️-security--localization)

- **Password Protection**: Optional dashboard access protection via configurable password.
- **Multi-language Support**: Fully localized in:
    - 🇺🇸 English (EN)
    - 🇸🇦 Arabic (AR)
    - 🇫🇷 French (FR)
    - 🇪🇸 Spanish (ES)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require httpsnader1/database-controllers
```

If you are developing locally and have the package in a `packages` folder:

```
"repositories": [
    {
        "type": "path",
        "url": "./packages/httpsnader1/database-controllers"
    }
],
"require": {
    "httpsnader1/database-controllers": "dev-master"
}
```

Configuration
-------------

[](#configuration)

You can publish the configuration file using:

```
php artisan vendor:publish --provider="Httpsnader1\DatabaseControllers\DatabaseControllersServiceProvider" --tag="config"
```

The configuration file will be available at `config/database-controllers.php`.

### Available Options

[](#available-options)

- `route_prefix`: The URL prefix for the dashboard (default: `database-controllers`).
- `password`: Password for dashboard access. Set to `null` to disable protection (default: `1234`).
- `backup_prefix`: Prefix for all generated backup files (default: `backup`).
- `excluded_tables`: Array of tables to hide from the dashboard and backups.
- `default_per_page`: Default number of rows per page in the table viewer (default: `10`).
- `per_page_options`: Options for the rows per page dropdown.

Usage
-----

[](#usage)

Access the dashboard by visiting: `your-app.test/database-controllers`

### CLI Restore Command

[](#cli-restore-command)

For very large files, it's recommended to use the Artisan command:

```
# Restore from a direct path
php artisan db:restore path/to/backup.sql

# Restore from the local backups folder
php artisan db:restore my-backup.zip --from-backups
```

Large File Support
------------------

[](#large-file-support)

The package is specifically optimized to handle large database imports and exports (1.8 GB and above) by:

- Increasing PHP memory limits dynamically.
- Setting unlimited execution time.
- Using `--quick` and `--single-transaction` for `mysqldump`.
- Handling large SQL warning/error outputs efficiently to prevent memory crashes.
- Utilizing background jobs and Artisan commands for heavy operations.

Local Development (Laragon)
---------------------------

[](#local-development-laragon)

This package is optimized for Windows/Laragon environments and will automatically search for `mysql` and `mysqldump` binaries in standard Laragon paths.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance85

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~1 days

Total

12

Last Release

79d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f3c6321231bf8cdd98a8283922664e46a6e242251efd7eee8dbf19569547353?d=identicon)[httpsnader1](/maintainers/httpsnader1)

---

Top Contributors

[![httpsnader1](https://avatars.githubusercontent.com/u/178033705?v=4)](https://github.com/httpsnader1 "httpsnader1 (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/httpsnader1-database-controllers/health.svg)

```
[![Health](https://phpackages.com/badges/httpsnader1-database-controllers/health.svg)](https://phpackages.com/packages/httpsnader1-database-controllers)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M165](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M124](/packages/laravel-mcp)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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