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

Db Dumper Laravel Package

spatie/db-dumper

PHP library to create database dumps via native CLI tools. Supports MySQL, MariaDB, PostgreSQL, SQLite, and MongoDB, wrapping mysqldump/mariadb-dump/pg_dump/sqlite3/mongodump with a simple fluent API.

View on GitHub
Deep Wiki
Context7
4.1.0

What's Changed

4.0.0

Breaking Changes

  • Require PHP 8.4+
  • Removed hidden illuminate/support dependency — getSSLFlag() no longer uses DB::selectOne() to auto-detect MySQL version. It now defaults to ssl-mode=DISABLED (works on MySQL 5.7.11+ and required for 8.4+). Use setSslFlag('skip-ssl') if you need the old flag for older MySQL versions.

Added

  • includeRoutines() method for MySQL and MariaDB to include stored procedures and functions in dumps
  • excludeTablesData() method for MySQL and MariaDB to exclude data for specific tables while keeping their structure
  • PHPStan static analysis at max level

Changed

  • Upgraded to Pest 4
  • Refactored codebase to use promoted constructor properties and standardized naming
  • Added array type annotations throughout the codebase
3.8.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.8.2...3.8.3

3.8.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.8.1...3.8.2

3.8.1

What's Changed

Full Changelog: https://github.com/spatie/db-dumper/compare/3.8.0...3.8.1

3.8.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.7.2...3.8.0

3.7.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.7.1...3.7.2

3.7.1
3.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.6.0...3.7.0

3.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.5.0...3.6.0

3.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.3...3.5.0

3.4.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.2...3.4.3

3.4.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.1...3.4.2

3.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.0...3.4.1

3.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.3.1...3.4.0

3.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.3.0...3.3.1

3.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.2.1...3.3.0

3.2.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/db-dumper/compare/3.2.0...3.2.1

3.2.0
3.1.2
3.1.1
3.1.0
  • Add includeTables support for Sqlite

Full Changelog: https://github.com/spatie/db-dumper/compare/3.0.1...3.1.0

3.0.1
  • remove type declaration that causes errors (#151)
3.0.0
  • require PHP 8+
  • drop all PHP 7.x support
  • use PHP 8 syntax
  • add Bzip2Compressor to allow use of the bzip2 compression utility
2.21.1
  • fix attempt to generate dump over http connection when using socket (#145)
2.21.0
  • fix: make the process more extensible, avoid touching anything (#141)
2.20.0
  • revert changes in 2.19.0
2.19.0
  • fix: add some public functions that allow extensibility (#139)
2.18.0
  • support PHP 8
2.17.0
  • add doNotUseColumnStatistics
2.16.1
  • fix using gzip compression on windows (#130)
2.16.0
  • allow for adding options after the db name (#129)
2.15.3
  • Fix incomplete credential guard (#126)
2.15.2
  • Fix sqlite3 dump on Windows
2.15.1
  • allow symfony 5 components
2.15.0
  • add doNotCreateTables to Postgres driver (#116)
2.14.3
  • fix memory leak (issue #109)
2.14.2
  • Determine quotes for windows for MongoDB and PostgreSql dumps (#107)
2.14.1
  • wrap the dump command in an if statement when using compression (#100)
  • drop support for PHP 7.2 and lower
2.14.0
  • add --skip-lock-tables and --quick option (#95)
2.13.2
  • fix process warnings
2.13.1
  • remove pipefail operator when compressing dump
2.13.0
  • add ability to specify all databases as MySQL option
2.12.0
  • add doNotCreateTables
2.11.1
  • add useExtension
2.11.0
  • add Compressor
2.10.1
  • allow destination paths to have a space character
2.10.0
  • add support for compressing dumps
2.9.0
  • add support for setting --set-gtid-purged
2.8.2
  • add support for Symfony 4
2.8.1
  • fix SQLite dump
2.8.0
  • add setAuthenticationDatabase
2.7.4
  • fix for dumping a MongoDB without username or password
2.7.3
  • allow empty passwords for MongoDB dumps
2.7.2
  • make --databases optional
2.7.1
  • made option passing more flexible by adding --databases option to the MySQL dumper
2.7.0
  • MongoDb dumps won't be compressed by default anymore
  • add enableCompression on MongoDb
2.6.1
  • fix sqlite dumper
2.6.0
  • add support for MongoDB
2.5.1
  • prefix excluded tables with database name when dumping a MySql db
2.5.0
  • add --default-character-set option for MySql
  • improve the preservation of the used charset when dumping a MySql db
2.4.1
  • fix bug where custom binary path with spaces on linux would not process correctly
2.4.0
  • add skipComments
2.3.0
  • add support for SQLite
2.1.1
  • made a change so the package can be used on Windows
2.1.0
  • added getHost
2.0.1
  • fix for dump paths with spaces
2.0.0
  • refactored all classes
  • added the ability to add artribrary options
1.5.1
  • Removed -d flag from pg_dump for compability with pgsql 7.3+
1.5.0
  • Added includeTables and excludeTables
1.4.0
  • Added --single-transaction option to Mysql dump command
1.3.0
  • Added the ability to use insert when dumping a PostgreSQL db
1.2.4
  • Added more details about a dump failure in the error message
1.2.3
  • Fixed an issue where paths containing spaces would cause problems
1.2.2
  • Added an option to set a timeout
1.2.1
  • Fixed PostgreSQL dump
1.2.0
  • Added support for PostgreSQL
1.1.0
  • Lowered PHP and symfony requirements
1.0.4
  • Fixed a bug when the backup has failed.
1.0.3
  • Added missing abstract getDbName-method
1.0.2
  • Added missing abstract dumpToFile-method
1.0.1
  • Fixed typo in checkIfDumpWasSuccessFul-method name
  • Fixed bug running Process
1.0.0
  • Initial release
What's
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport