Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Database Dumper Command Bundle

Database Dumper Command Bundle Laravel Package

cdwv/database-dumper-command-bundle

Symfony bundle adding a console command to create database backups/dumps. Install via Composer, register the bundle, then run app/console cdwv:database:dump to generate a dump for your configured database.

View on GitHub
Deep Wiki
Context7

Symfony command for create database backup

Frequently asked questions about Database Dumper Command Bundle
Can I use this package directly in Laravel without Symfony?
No, this bundle is built for Symfony 2.x and lacks Laravel compatibility. You’d need to wrap its Symfony Console command in a Laravel Artisan command or reimplement the logic using Laravel’s native tools like `artisan db:dump`. The Symfony 2.x dependencies (e.g., AppKernel) won’t integrate cleanly with Laravel’s service container.
Will this work with Laravel 9+ or PHP 8.x?
No, this bundle is incompatible with Laravel 9+ or PHP 8.x. It relies on Symfony 2.x (PHP 5.3–7.1), while Laravel 9+ requires PHP 8.0+. Running it risks breaking due to deprecated Symfony components and PHP version mismatches. Test in a staging environment if you attempt integration, but expect failures.
Does this support PostgreSQL, SQLite, or other databases beyond MySQL?
The bundle assumes MySQL/PostgreSQL compatibility but doesn’t explicitly document support for SQLite or other databases. Laravel’s `DB` facade abstracts database drivers better, so if you need multi-database support, consider Laravel-native alternatives like `spatie/laravel-backup`, which handles SQLite, PostgreSQL, and more.
How do I install and configure this in Laravel?
Install via Composer (`composer require cdwv/database-dumper-command-bundle`), but Laravel won’t recognize Symfony bundles natively. You’d need to manually register it in `config/app.php` (if using a bridge) or create a custom Artisan command to invoke the Symfony CLI logic. The bundle’s `AppKernel` registration won’t work in Laravel without heavy modifications.
Are there security risks using this outdated package?
Yes, the package hasn’t been updated since 2017 and lacks PHP 8.x or Laravel compatibility. Security risks include unpatched vulnerabilities (e.g., command injection if input isn’t sanitized) and dependency conflicts with modern Laravel versions. Avoid in production unless you fork and modernize it yourself.
Can I add encryption or cloud storage (e.g., S3) to backups with this bundle?
No, this bundle only generates raw database dumps via CLI and doesn’t support encryption, compression, or cloud storage. For these features, use Laravel-native packages like `spatie/laravel-backup`, which include S3 uploads, encryption, and incremental backups out of the box.
What’s the best alternative for Laravel database backups?
For Laravel, prefer `spatie/laravel-backup` (modern, actively maintained) or Laravel’s built-in `artisan db:dump` (for simple MySQL/PostgreSQL dumps). This bundle offers no unique advantages over those options and introduces compatibility risks. If you need Symfony-specific features, consider a dedicated Symfony project instead.
How do I test this bundle in a Laravel project before production?
Test by creating a custom Artisan command to invoke the Symfony CLI logic (e.g., wrap `DatabaseDumpCommand` in a Laravel command). Run it in a staging environment with your target PHP/Laravel version to check for errors. Expect failures due to Symfony 2.x dependencies, so validate fallback plans (e.g., migrating to `spatie/laravel-backup`).
Does this bundle work with Laravel’s scheduler (e.g., `schedule:run`)?
No, this bundle isn’t designed for Laravel’s scheduler. You’d need to manually trigger the Symfony CLI command via a custom Artisan command or shell script. Laravel’s native `artisan db:dump` or `spatie/laravel-backup` integrate seamlessly with the scheduler, making them better choices for automated backups.
What maintenance effort is required to use this in Laravel?
High. You’d need to abstract Symfony’s `AppKernel` and `DependencyInjection` to work with Laravel’s container, patch deprecated code for PHP 8.x, and handle potential breaking changes. The bundle’s stagnation (last update in 2017) means you’re responsible for all updates. For long-term projects, this isn’t sustainable—opt for Laravel-native solutions instead.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
testo/facade
headercat/phpstan-extension-ide-helper
yosymfony/parser-utils
innmind/black-box
babenkoivan/elastic-migrations
babenkoivan/elastic-adapter
sandermuller/package-boost-php
sandermuller/boost-core
depa/sulu-google-reviews-bundle
croct/plug-symfony
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle