PHPackages                             ayles-software/laravel-mysql-s3-backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. ayles-software/laravel-mysql-s3-backup

ActiveLibrary[File &amp; Storage](/categories/file-storage)

ayles-software/laravel-mysql-s3-backup
======================================

Backup the MySQL database of your Laravel app to Amazon S3

4.10.0(2mo ago)525.0k↓44.8%4PHPPHP ^8.3

Since Apr 24Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ayles-software/laravel-mysql-s3-backup)[ Packagist](https://packagist.org/packages/ayles-software/laravel-mysql-s3-backup)[ RSS](/packages/ayles-software-laravel-mysql-s3-backup/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (18)Used By (0)

Laravel MySQL to S3 Backup
==========================

[](#laravel-mysql-to-s3-backup)

This is a very simple database backup script for Laravel. It takes a `mysqldump` and saves it to [Amazon S3](http://aws.amazon.com/s3/) or compatible object storage. It also supports trimming backups to only have X days worth on S3.

This package is very opinionated. Other backup scripts can support other database types or other places besides S3 to store your backup. This does not.

Installation
------------

[](#installation)

1. Install package

    ```
    composer require ayles-software/laravel-mysql-s3-backup

    ```
2. Publish and edit the config

    ```
    php artisan vendor:publish --provider="LaravelMysqlS3Backup\ServiceProvider"
    ```

    Edit `config/laravel-mysql-s3-backup.php`:

    ```
    's3' => [
        'key'    => 'AMAZON_API_KEY',
        'secret' => 'AMAZON_API_SECRET',
        'bucket' => 'your-bucket-name',
        'region' => 'your-bucket-region',
        'endpoint' => env('AWS_ENDPOINT'),
        'folder' => env('BACKUP_FOLDER'),
    ],
    ```

Usage
-----

[](#usage)

```
$ php artisan db:backup
```

That's it. No arguments or optional parameters.

### Credit

[](#credit)

This package was originally forked from [fitztrev](https://github.com/fitztrev/laravel-mysql-s3-backup) before a complete rewrite.

License
-------

[](#license)

Laravel MySQL to S3 Backup is open-sourced software licensed under the [MIT license](https://github.com/ayles-software/laravel-mysql-s3-backup/blob/master/LICENSE.md).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~133 days

Recently: every ~319 days

Total

17

Last Release

80d ago

PHP version history (3 changes)4.0PHP ^7.1

4.4.0PHP ^7.1|^8.0

4.9.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/44064852e6895bec4fa6330fd0d6d2b3a1b2d8b3466f12ef717a2bf94c8fdfe0?d=identicon)[parkourben99](/maintainers/parkourben99)

---

Top Contributors

[![parkourben99](https://avatars.githubusercontent.com/u/7295774?v=4)](https://github.com/parkourben99 "parkourben99 (40 commits)")[![fitztrev](https://avatars.githubusercontent.com/u/271432?v=4)](https://github.com/fitztrev "fitztrev (7 commits)")[![woodymendoza](https://avatars.githubusercontent.com/u/879473?v=4)](https://github.com/woodymendoza "woodymendoza (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ayles-software-laravel-mysql-s3-backup/health.svg)

```
[![Health](https://phpackages.com/badges/ayles-software-laravel-mysql-s3-backup/health.svg)](https://phpackages.com/packages/ayles-software-laravel-mysql-s3-backup)
```

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M9](/packages/humanmade-s3-uploads)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
