PHPackages                             yousefpackage/lara-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. yousefpackage/lara-backup

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

yousefpackage/lara-backup
=========================

This is a Laravel package for backing up databases

v1(3y ago)142543[1 PRs](https://github.com/y0usefalsaadany/laraBackup/pulls)MITPHP

Since Apr 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/y0usefalsaadany/laraBackup)[ Packagist](https://packagist.org/packages/yousefpackage/lara-backup)[ RSS](/packages/yousefpackage-lara-backup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

install package
===============

[](#install-package)

```
composer require yousefpackage/lara-backup

```

then goto config folder
=======================

[](#then-goto-config-folder)

in config/app.php

```
'providers' => [

Yousefpackage\LaraBackup\Providers\LaraBackupServiceProvider::class,
Yousefpackage\LaraBackup\Providers\BackupServiceProvider::class,
Yousefpackage\LaraBackup\Providers\RouteServiceProvider::class,

],

```

then goto kernel.php
====================

[](#then-goto-kernelphp)

write this in $routeMiddleware

```
'DbBackup'=>\Yousefpackage\LaraBackup\Middleware\DbAlertMiddleware::class,

```

then goto env file and put this
===============================

[](#then-goto-env-file-and-put-this)

```
BACKUP_DB_HOST=127.0.0.1
BACKUP_DB_PORT=3306
BACKUP_DB=backup
BACKUP_DB_USERNAME=root
BACKUP_DB_PASSWORD=

```

then run this command after create your database
================================================

[](#then-run-this-command-after-create-your-database)

```
php artisan db:alert

```

using
=====

[](#using)

Now Put this middleware on the routes.

```
->middleware('DbBackup');

```

like this

```
Route::get('/data', function () {
    return response()->json('data');
})->middleware('DbBackup');

```

get database alerts
===================

[](#get-database-alerts)

now to get database backup database alerts using this api

```
http://127.0.0.1:8000/api/dbAlerts

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2396a5bb8f81a4f19de672ce5dbfab5f3cab4f4e122d7b0ac6f5cc1b6a30639d?d=identicon)[y0usefalsaadany](/maintainers/y0usefalsaadany)

---

Top Contributors

[![y0usefalsaadany](https://avatars.githubusercontent.com/u/58972656?v=4)](https://github.com/y0usefalsaadany "y0usefalsaadany (25 commits)")

### Embed Badge

![Health badge](/badges/yousefpackage-lara-backup/health.svg)

```
[![Health](https://phpackages.com/badges/yousefpackage-lara-backup/health.svg)](https://phpackages.com/packages/yousefpackage-lara-backup)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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