ahrasel / laravel-backup
Laravel backup package
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ahrasel/laravel-backup
Requires
- php: ^8.1
This package is auto-updated.
Last update: 2025-12-07 09:04:44 UTC
README
Introduction
The Database Backup Laravel Package is a convenient solution for backing up MySQL and PostgreSQL databases in a Laravel application. It provides a simple endpoint /database-backup to trigger the backup process.
Installation
-
Install the package using Composer:
composer require ahrasel/laravel-backup
-
Register the
BackupServiceProviderin yourconfig/app.php:'providers' => [ // ... Ahrasel\LaravelBackup\BackupServiceProvider::class, ],
Configuration
The package comes with default configurations. If you need to customize the configuration, publish the configuration file using the following command:
php artisan vendor:publish --provider=" Ahrasel\LaravelBackup\BackupServiceProvider" --tag="config"
This will create a backup.php file in your config directory.
Usage
Once installed and configured, you can trigger a database backup by hitting the /database-backup endpoint in your Laravel application.
Example:
http://localhost:8000/database-backup
You can also integrate this endpoint into your application as needed, for example, by creating a scheduled task to run the backup at specific intervals.
License
This Laravel package is open-sourced software licensed under the MIT license.
Issues and Contributions
If you encounter any issues or have suggestions for improvements, feel free to open an issue on the GitHub repository.
Happy coding!