PHPackages                             smoq/database-dump-bundle - 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. smoq/database-dump-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

smoq/database-dump-bundle
=========================

A small Symfony bundle that allows for database dump from the client side in excel or sql format

v1.0.1(3y ago)04MITPHPPHP &gt;=8.1

Since Jun 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Smoqqqq/database-dump-bundle)[ Packagist](https://packagist.org/packages/smoq/database-dump-bundle)[ RSS](/packages/smoq-database-dump-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Database Dump Bundle
====================

[](#database-dump-bundle)

This bundle allows to easily dump a full database to an excel file or an SQL file.

Usage
-----

[](#usage)

example in a controller :

```
#[Route("/database/dump/excel", name: "app_dump_database_excel")]
function dumpDatabase(ManagerRegistry $doctrine, ExcelDumper $dumper): BinaryFileResponse
{
    $filepath = getcwd() . "/exports/dump.xlsx";

    // dump the db to a .xlsx file
    $dumper->dumpToFile($filepath, ["doctrine_migration_versions"], true);

    $response = new BinaryFileResponse($filepath);
    $response->setContentDisposition(
        ResponseHeaderBag::DISPOSITION_ATTACHMENT,
        "dump.sql"
    );

    // return it as an attachment (download it to the user's computer)
    return $response;
}
```

Simply replace ExcelDumper by SqlDumper to create a .sql file instead (don't forget to replace the extension in the filepath !).

If you only want to dump the schema of the database, without its data, you can use the `DumperInterface::dumpSchema` method.

Excel dumper
------------

[](#excel-dumper)

Please note that when using the excel dumper, the file format is specified by the file extension (string after the last dot). If the file format isn't supported, it will default throw an error

Sql dumper
----------

[](#sql-dumper)

If you try to exclude an entity which another depends upon, without excluding the other one, an error will be thrown, as the generated sql file would be broken otherwise.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

2

Last Release

1127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34dee88543cc38613517eb746f6e6ebfcdc016c2027528d45da8aa3a48cda8b8?d=identicon)[Smoq](/maintainers/Smoq)

---

Top Contributors

[![Smoqqqq](https://avatars.githubusercontent.com/u/61330908?v=4)](https://github.com/Smoqqqq "Smoqqqq (22 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/smoq-database-dump-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/smoq-database-dump-bundle/health.svg)](https://phpackages.com/packages/smoq-database-dump-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)

PHPackages © 2026

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