PHPackages                             oalid-cse/laravel-db-export - 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. [Database &amp; ORM](/categories/database)
4. /
5. oalid-cse/laravel-db-export

ActiveLibrary[Database &amp; ORM](/categories/database)

oalid-cse/laravel-db-export
===========================

Database Export in Laravel

1.0.5(6y ago)224MITPHP

Since Jul 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/oalid-cse/LaravelDBExport)[ Packagist](https://packagist.org/packages/oalid-cse/laravel-db-export)[ RSS](/packages/oalid-cse-laravel-db-export/feed)WikiDiscussions master Synced 3d ago

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

LaravelDBExport
===============

[](#laraveldbexport)

A simple mysql database export package for laravel.

- You can export your database easily in laravel by using this package
- For Security perpose you can set whitlist ip addresses to set limited access

Installation
============

[](#installation)

Install the package through [Composer](http://getcomposer.org/). Run the Composer require command from the Terminal:

```
composer require oalid-cse/laravel-db-export

```

If you are using Laravel `5.5` or updated version, this is all there is to do for installation.

If you still using on version `5.4` or less of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.

Add the following line to the `providers` array:

```
OalidCse\DBExport\DBExportServiceProvider::class,

```

And optionally add the following line to the `aliases` array:

```
'DBExport' => OalidCse\DBExport\DBExportController::class,

```

Now you're ready to start using the laravel-db-export in your application.

Uses
====

[](#uses)

The LaravelDBExport gives you database content. You just need to download it.

Your Content:

```
$content = DBExport::export_database();

```

For Download:

```
return response()->download($content);

```

If you need to customize the database name then use:

```
return response()->download($content, 'custom-name.sql');

```

#### Export Database Example:

[](#export-database-example)

In your route `routes/web.php` use:

```
Route::get('/your-route', function(){
    $content = DBExport::export_database();
    return response()->download($content, 'demo.sql');
});

```

#### Set Whitelist IP's

[](#set-whitelist-ips)

For whitelist ip in your `.env` file use `DB_EXPORT_VALID_IPS` variable. Seperate all ip using comma ","

##### example:

[](#example)

```
DB_EXPORT_VALID_IPS:"192.168.1.1,192.168.1.2,192.168.1.3"

```

`Happy Coding :)`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

2497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e7c7d3293d4d42eb0ab7f447559b73fba089cc6f6f6235c48c39a8f9d51785c?d=identicon)[oalid-cse](/maintainers/oalid-cse)

---

Top Contributors

[![oalid-cse](https://avatars.githubusercontent.com/u/29829813?v=4)](https://github.com/oalid-cse "oalid-cse (3 commits)")

### Embed Badge

![Health badge](/badges/oalid-cse-laravel-db-export/health.svg)

```
[![Health](https://phpackages.com/badges/oalid-cse-laravel-db-export/health.svg)](https://phpackages.com/packages/oalid-cse-laravel-db-export)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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