aaix / laravel-easy-backups
A developer-first, fluent and flexible package for creating database backups in Laravel.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:laravel-package
pkg:composer/aaix/laravel-easy-backups
Requires
- php: ^8.2|^8.3|^8.4|^8.5
- ext-zip: *
- ext-zlib: *
- illuminate/console: ^11.0|^12.0|^13.0
- illuminate/database: ^11.0|^12.0|^13.0
- illuminate/filesystem: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: >=8.0.0
- pestphp/pest: >=2.0
- pestphp/pest-plugin-laravel: >=2.0
- phpunit/phpunit: >=10.0.0
- roave/security-advisories: dev-latest
README
Laravel Easy Backups
A developer-first, fluent and flexible package for creating backups in Laravel.
Installation
Install the package via Composer:
composer require aaix/laravel-easy-backups
Next, publish the configuration file. This is optional but recommended.
php artisan vendor:publish --provider="Aaix\LaravelEasyBackups\EasyBackupsServiceProvider" --tag="config"
A Quick Look
Laravel Easy Backups provides a fluent, chainable API to define your backup workflows directly in your Laravel application.
Here's a quick example of how to back up your primary database to an S3 disk while ensuring only the 10 most recent backups are kept.
use Aaix\LaravelEasyBackups\Facades\Backup; Backup::database(config('database.default')) ->saveTo('s3') ->compress() ->maxRemoteBackups(10) ->run();
Documentation
For the full documentation, including advanced features, common recipes, and detailed guides, please visit our full documentation website.