Download the PHP package programinglive/laravel-simple-backup without Composer
On this page you can find all versions of the php package programinglive/laravel-simple-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download programinglive/laravel-simple-backup
More information about programinglive/laravel-simple-backup
Files in programinglive/laravel-simple-backup
Package laravel-simple-backup
Short Description A simple Laravel package for backing up MySQL and PostgreSQL databases
License MIT
Informations about the package laravel-simple-backup
Laravel Simple Backup
A simple Laravel package for backing up MySQL and PostgreSQL databases.
Author: Mahatma Mahardhika [email protected]
Features
- 🗄️ Support for MySQL and PostgreSQL databases
- 📦 Easy to install and use
- 🎯 Simple Artisan command for backups
- 💾 Automatic backup file management
- 🔧 Configurable backup settings
Installation
Configuration
Publish the configuration file:
This will create a config/backup.php file where you can configure your backup settings.
Usage
Using Artisan Command
Backup the default database connection:
Backup a specific database connection:
Or for PostgreSQL:
Using the Backup Manager Class
Using the Facade
Requirements
- PHP 8.1 or higher
- Laravel 9.0, 10.0, 11.0, or 12.0
- MySQL or PostgreSQL with command-line tools installed
System Requirements
For MySQL backups, ensure mysqldump is installed:
- Windows: Usually included with MySQL installation
- Linux:
sudo apt-get install mysql-client - macOS:
brew install mysql-client
For PostgreSQL backups, ensure pg_dump is installed:
- Windows: Usually included with PostgreSQL installation
- Linux:
sudo apt-get install postgresql-client - macOS:
brew install postgresql
Backup File Location
Backups are stored in the storage/backups directory by default. You can change this in the config/backup.php file.
Backup File Format
Backup files are named with the following format:
Example:
Testing
Running Tests
Testing in a Laravel Project
To test this package in a real Laravel project:
-
Create a new Laravel project:
-
Add the package as a local repository in
composer.json: -
Install the package:
-
Configure your database in
.envand run: - Check the backup file in
storage/backups/
Contributing
Please see CONTRIBUTING.md for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
MIT License. See LICENSE file for details.
Support
For issues and feature requests, please visit the GitHub repository.
All versions of laravel-simple-backup with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
illuminate/config Version ^9.0|^10.0|^11.0|^12.0