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

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

saeedvir/laravel-mysql-backup
=============================

Export Mysql Database To The Single File (.sql)

422[1 issues](https://github.com/saeedvir/laravel-mysql-backup/issues)PHP

Since Aug 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/saeedvir/laravel-mysql-backup)[ Packagist](https://packagist.org/packages/saeedvir/laravel-mysql-backup)[ RSS](/packages/saeedvir-laravel-mysql-backup/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel mysql backup
====================

[](#laravel-mysql-backup)

This package will help you to backup mysql database in laravel (easy way !)

Here are a few short examples of what you can do:

توضیحات فارسی
-------------

[](#توضیحات-فارسی)

این پکیج برای پشتیبان گیری از دیتابیس مای اسکیوال کاربرد دارد.

می توانید از دستورات زمان بندی در کنار آن استفاده کنید و به صورت زمان بندی پشتیبان گیری کنید.

Notice
------

[](#notice)

Note that this package is in development and may have a lot of bugs at first

### How to install ?

[](#how-to-install-)

```
composer require saeedvir/laravel-mysql-backup
```

### How to use ?

[](#how-to-use-)

create backup file (all tablse)

```
php artisan mysql:backup
```

or

```
php artisan mysql:backup table1,table2,table3,...
```

For Help :

```
php artisan mysql:backup help
```

How to execute artisan commands from route or controller in Laravel ?
---------------------------------------------------------------------

[](#how-to-execute-artisan-commands-from-route-or-controller-in-laravel-)

```
Route::get('MysqlBackupCommands/{command}', function ($command) {

	/*
		For Example :

		http://127.0.0.1/MysqlBackupCommands/backup

	*/

	$command = explode(' ',$command);
	if(!isset($command[1])){
		$command[1] = null;
	}

    \Artisan::call('mysql:backup',['mode'=>$command[0],'options'=>$command[1]]);

});
```

Other Packages
--------------

[](#other-packages)

- [Laravel Project Ghost](https://github.com/saeedvir/projectGhost)
- [Laravel Assets Optimize](https://github.com/saeedvir/laravel-assets-optimizer)

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8615309?v=4)[saeed abdollahian](/maintainers/saeedvir)[@saeedvir](https://github.com/saeedvir)

---

Top Contributors

[![saeedvir](https://avatars.githubusercontent.com/u/8615309?v=4)](https://github.com/saeedvir "saeedvir (14 commits)")

---

Tags

laravellaravel-frameworklaravel-packagemysqlmysql-backupmysql-databasephp

### Embed Badge

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

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

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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