PHPackages                             yk/laravel-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. yk/laravel-backup

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

yk/laravel-backup
=================

A Laravel backup example.

1.0(9y ago)154GPLv2PHPPHP &gt;=5.6.4

Since Jan 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yassine-khachlek/laravel-backup)[ Packagist](https://packagist.org/packages/yk/laravel-backup)[ Docs](https://github.com/yassine-khachlek/laravel-backup)[ RSS](/packages/yk-laravel-backup/feed)WikiDiscussions master Synced today

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

Laravel Backup
==============

[](#laravel-backup)

This laravel package create a backup of your database. Backup files are stored in json files instead of sql for less size and easy access to the backuped data for any other treatments than importation in mysql database.

### Installation

[](#installation)

Install wia composer:

```
composer require yk/laravel-backup

```

And add the service provider in config/app.php:

```
Yk\LaravelBackup\LaravelBackupProvider::class,
```

### How to use

[](#how-to-use)

The package expose 2 commands.

To export you database use:

```
php artisan backup:export

```

To import the last backup use:

```
php artisan backup:import

```

Note
----

[](#note)

You can found your backups in your application storage folder inside the backups folder.

When you use the importation command, all tables are erased, so only the imported backup data will be present.

TODO
----

[](#todo)

1. Change or make selectable, the number of records per json file.
2. Add files backup compression using gz or zip.
3. Add a command for files backup.
4. Some applications use more than database, so maybe should support for multiple databases backup.

License
-------

[](#license)

### GPLv2

[](#gplv2)

Copyright (c) 2016 Yassine Khachlek

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5513479?v=4)[Yassine Khachlek](/maintainers/yassine-khachlek)[@yassine-khachlek](https://github.com/yassine-khachlek)

---

Top Contributors

[![yassine-khachlek](https://avatars.githubusercontent.com/u/5513479?v=4)](https://github.com/yassine-khachlek "yassine-khachlek (2 commits)")

---

Tags

laravelpackageexample

### Embed Badge

![Health badge](/badges/yk-laravel-backup/health.svg)

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

###  Alternatives

[oneofftech/laravel-tus-upload

Upload files to your Laravel application with the tus.io resumable upload protocol.

517.5k](/packages/oneofftech-laravel-tus-upload)[erlandmuchasaj/laravel-file-uploader

A simple package to help you easily upload files to your laravel project.

139.0k](/packages/erlandmuchasaj-laravel-file-uploader)[menthe/aliyun-ueditor

UEditor for laravel5 and Aliyun OSS.Store all images and files in Aliyun OSS. Support i18n. UEditor is a Rich Text Web Editor From Baidu.

182.4k](/packages/menthe-aliyun-ueditor)

PHPackages © 2026

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