coding-sniper / mysql-backup
A PHP package for easily creating database back ups.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/coding-sniper/mysql-backup
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-12-23 11:27:25 UTC
README
This is a simple PHP library for exporting table structures and data, similar to the PhpMyAdmin export feature.
Features
- Export table structure
- Export data in the form of transactional SQL query
- Save and download the database export
Installation
Install the dependencies and devDependencies and start the server.
composer require coding-sniper/mysql-backup
Usage
use CodingSniper\MysqlBackup\Backup; $backup = new Backup($db,$user,$pass); // pass db credentials here $backup->export(); // exports and downloads yoour db in the form of dbname.sql
License
MIT
Free Software, Hell Yeah!