phpfy/laravel-backup

A comprehensive Laravel backup package with support for multiple databases and file backups

Maintainers

Package info

github.com/rahul4902/phpfy-laravel-backup

Homepage

pkg:composer/phpfy/laravel-backup

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2025-12-19 06:21 UTC

This package is auto-updated.

Last update: 2026-03-19 07:47:19 UTC


README

A production-ready Laravel package for backing up your database and application files.
Works with MySQL, PostgreSQL, SQLite, and SQL Server using pure PHP database dumps, without requiring external CLI tools like mysqldump or pg_dump.
Designed for commercial and open-source projects.

✨ Features

  • ✅ Database backups: MySQL, PostgreSQL, SQLite, SQL Server
  • ✅ File backups with include & exclude paths
  • No external dump tools required (pure PHP)
  • AES-256 encryption support
  • ✅ Multiple storage disks (local, S3, FTP, etc.)
  • ✅ Automatic cleanup with retention rules
  • ✅ Artisan commands for run, list & clean backups
  • ✅ Scheduler-ready (Laravel Scheduler)
  • ✅ Fully tested & PSR-compliant structure

📋 Requirements

  • PHP 8.1 or higher
  • Laravel 10.x or 11.x
  • Required PDO extensions:
    • pdo_mysql
    • pdo_pgsql
    • pdo_sqlite
    • pdo_sqlsrv

📦 Installation

composer require phpfy/laravel-backup
php artisan vendor:publish --provider="Phpfy\LaravelBackup\LaravelBackupServiceProvider" --tag=backup-config

⚙️ Configuration

Config file location:

config/backup.php

🚀 Usage

php artisan backup:run
php artisan backup:list
php artisan backup:clean

🧪 Testing

composer test

📄 License

MIT License.