Download the PHP package oluokunkabiru/database-exporter without Composer
On this page you can find all versions of the php package oluokunkabiru/database-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oluokunkabiru/database-exporter
More information about oluokunkabiru/database-exporter
Files in oluokunkabiru/database-exporter
Download oluokunkabiru/database-exporter
More information about oluokunkabiru/database-exporter
Files in oluokunkabiru/database-exporter
Vendor oluokunkabiru
Package database-exporter
Short Description Simple and elegant PHP/Laravel database exporter package that exports databases to SQL files and downloads them locally without phpMyAdmin login.
License MIT
Homepage https://github.com/oluokunkabiru/database-exporter
Package database-exporter
Short Description Simple and elegant PHP/Laravel database exporter package that exports databases to SQL files and downloads them locally without phpMyAdmin login.
License MIT
Homepage https://github.com/oluokunkabiru/database-exporter
Please rate this library. Is it a good library?
Informations about the package database-exporter
Database Exporter
A powerful Laravel/PHP package that allows you to export and download database backups without needing access to phpMyAdmin or terminal commands.
Features
- 🎯 Export entire database or specific tables
- 📥 Download SQL files directly to your machine or store in cloud
- 🚀 Simple web-based UI with Livewire components
- 💻 CLI commands for automated backups and scheduling
- 🔒 Support for Laravel and vanilla PHP connections
- ⚙️ Configurable export options (compression, formatting, DROP TABLE statements)
- 📊 Real-time export progress tracking
- 🎨 Clean and intuitive TailwindCSS dashboard interface
- 💾 Multiple export formats: SQL, CSV
- 🗜️ Built-in compression support (ZIP)
- 👁️ Include views, triggers, and stored procedures
Installation
Step 1: Install via Composer
Step 2: Publish Configuration (Laravel only)
Step 3: Publish Views (optional)
Quick Start
Laravel - Web Interface
- Visit
/database-exporterin your browser - Select tables to export
- Configure export options
- Click "Start Export"
- Download the file
Laravel - CLI Command
Laravel - Programmatic Usage
Vanilla PHP - Manual Connection
Vanilla PHP - Environment-based Connection
Configuration
Edit config/database-exporter.php to customize:
Usage Examples
Scheduled Backups
API Endpoint
Available Methods
Configuration Methods
| Method | Description | Type |
|---|---|---|
setConnection(PDO $connection) |
Set database connection | self |
setDatabase(string $database) |
Set database name | self |
tables(array $tables) |
Select specific tables | self |
format(string $format) |
Set export format (sql, csv) | self |
compress(bool $compress) |
Enable/disable compression | self |
includeViews(bool $include) |
Include database views | self |
includeTriggers(bool $include) |
Include triggers | self |
addDropTable(bool $add) |
Add DROP TABLE statements | self |
sqlFormat(string $format) |
Set SQL formatting (pretty, minified) | self |
Query Methods
| Method | Description | Return |
|---|---|---|
getDatabaseInfo() |
Get database information | array |
getAllTables() |
Get all table names | array |
getTableInfo(string $table) |
Get table information | array |
export(?string $filename, ?callable $progressCallback) |
Export database | string (filepath) |
Security
- ✅ Authentication required by default (configurable)
- ✅ Role-based access control
- ✅ File path validation (prevents directory traversal)
- ✅ Database connection validation
- ✅ Temporary file cleanup
Performance
- ⚡ Optimized for large databases
- ⚡ Batch inserts (100 rows per batch)
- ⚡ Progress callbacks for UI updates
- ⚡ Streaming downloads (no memory overload)
- ⚡ Optional compression for smaller files
Troubleshooting
"Database connection not set"
Make sure you're passing a valid PDO connection or using ConnectionResolver::resolve().
Export takes too long
- Increase
max_execution_timein config - Export specific tables instead of entire database
- Use compression to speed up downloads
"File not found" on download
Make sure the backup directory exists and has write permissions:
Connection refused
Verify your database credentials in .env:
Requirements
- PHP >= 8.0
- Laravel >= 9.0 (for Laravel integration)
- MySQL >= 5.7 or MariaDB >= 10.2
- Livewire >= 3.0 (for web dashboard)
License
MIT
Support
For issues, questions, or contributions, please visit the GitHub repository.
Credits
Created by Oluokun Kabiru Adesina
All versions of database-exporter with dependencies
PHP Build Version
Package Version
The package oluokunkabiru/database-exporter contains the following files
Loading the files please wait ...