spatie/db-dumper
Dump databases
4.1.1
31M downloads/mo
#580 most downloaded on Packagist
spatie/db-dumper
What this package is like to depend on
Last release 3 months ago
04 May 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 79 of 85 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
85 releases · first in 2016
6 releases in the last 12 months
see the full history below
Release timeline
84 releases · Jan 2016 to May 2026Releases
latest 60 of 85-
4.1.104 May 2026Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.5.0 to 3.0.0 by @dependabot[bot] in #244
- Bump dependabot/fetch-metadata from 3.0.0 to 3.1.0 by @dependabot[bot] in #245
- Fix grammar in DumpFailed exception message by @Warbs816 in #246
New Contributors
Full Changelog: 4.1.0...4.1.1
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.5.0 to 3.0.0 by @dependabot[bot] in https://github.com/spatie/db-dumper/pull/244
- Bump dependabot/fetch-metadata from 3.0.0 to 3.1.0 by @dependabot[bot] in https://github.com/spatie/db-dumper/pull/245
- Fix grammar in DumpFailed exception message by @Warbs816 in https://github.com/spatie/db-dumper/pull/246
New Contributors
- @Warbs816 made their first contribution in https://github.com/spatie/db-dumper/pull/246
Full Changelog: https://github.com/spatie/db-dumper/compare/4.1.0...4.1.1
-
4.1.019 Mar 2026Release notes
Open source →Release notes
Open source →What's Changed
- Downgrade PHP requirement from ^8.4 to ^8.3 by @erikn69 in https://github.com/spatie/db-dumper/pull/243
-
4.0.015 Feb 2026Release notes
Open source →Breaking Changes
- Require PHP 8.4+
- Removed hidden
illuminate/supportdependency —getSSLFlag()no longer usesDB::selectOne()to auto-detect MySQL version. It now defaults tossl-mode=DISABLED(works on MySQL 5.7.11+ and required for 8.4+). UsesetSslFlag('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 dumpsexcludeTablesData()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
Full Changelog: 3.8.3...4.0.0
Release notes
Open source →Breaking Changes
- Require PHP 8.4+
- Removed hidden
illuminate/supportdependency —getSSLFlag()no longer usesDB::selectOne()to auto-detect MySQL version. It now defaults tossl-mode=DISABLED(works on MySQL 5.7.11+ and required for 8.4+). UsesetSslFlag('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 dumpsexcludeTablesData()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.305 Jan 2026Release notes
Open source →What's Changed
- Fix MariaDb ssl flag by @sgilberg in https://github.com/spatie/db-dumper/pull/237
New Contributors
- @sgilberg made their first contribution in https://github.com/spatie/db-dumper/pull/237
Full Changelog: https://github.com/spatie/db-dumper/compare/3.8.2...3.8.3
-
3.8.210 Dec 2025Release notes
Open source →What's Changed
- added ssl flag override to allow for custom server flags by @aschkenasy in #236
New Contributors
- @aschkenasy made their first contribution in #236
Full Changelog: 3.8.1...3.8.2
Release notes
Open source →What's Changed
- added ssl flag override to allow for custom server flags by @aschkenasy in https://github.com/spatie/db-dumper/pull/236
New Contributors
- @aschkenasy made their first contribution in https://github.com/spatie/db-dumper/pull/236
Full Changelog: https://github.com/spatie/db-dumper/compare/3.8.1...3.8.2
-
3.8.126 Nov 2025Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot[bot] in #221
- Update issue template by @AlexVanderbist in #224
- refactor: combine string replacements in PostgreSQL escape method by @Ayoub-Mabrouk in #229
- refactor: optimize empty value check in configureFromDatabaseUrl by @Ayoub-Mabrouk in #230
- refactor: use PHP_OS_FAMILY for Windows detection by @Ayoub-Mabrouk in #231
- Added Symfony 8 support to all symfony/* packages. by @thecaliskan in #232
- Bump actions/checkout from 4 to 6 by @dependabot[bot] in #233
- Bump stefanzweifel/git-auto-commit-action from 5 to 7 by @dependabot[bot] in #225
Full Changelog: 3.8.0...3.8.1
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot[bot] in https://github.com/spatie/db-dumper/pull/221
- Update issue template by @AlexVanderbist in https://github.com/spatie/db-dumper/pull/224
- refactor: combine string replacements in PostgreSQL escape method by @Ayoub-Mabrouk in https://github.com/spatie/db-dumper/pull/229
- refactor: optimize empty value check in configureFromDatabaseUrl by @Ayoub-Mabrouk in https://github.com/spatie/db-dumper/pull/230
- refactor: use PHP_OS_FAMILY for Windows detection by @Ayoub-Mabrouk in https://github.com/spatie/db-dumper/pull/231
- Added Symfony 8 support to all symfony/* packages. by @thecaliskan in https://github.com/spatie/db-dumper/pull/232
- Bump actions/checkout from 4 to 6 by @dependabot[bot] in https://github.com/spatie/db-dumper/pull/233
- Bump stefanzweifel/git-auto-commit-action from 5 to 7 by @dependabot[bot] in https://github.com/spatie/db-dumper/pull/225
Full Changelog: https://github.com/spatie/db-dumper/compare/3.8.0...3.8.1
-
3.8.014 Feb 2025Release notes
Open source →What's Changed
- Adds simple MariaDB class by @nbyloff in https://github.com/spatie/db-dumper/pull/220
New Contributors
- @nbyloff made their first contribution in https://github.com/spatie/db-dumper/pull/220
Full Changelog: https://github.com/spatie/db-dumper/compare/3.7.2...3.8.0
-
3.7.214 Feb 2025Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in #217
- Add append mode by @LBannenberg in #219
New Contributors
- @LBannenberg made their first contribution in #219
Full Changelog: 3.7.1...3.7.2
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/db-dumper/pull/217
- Add append mode by @LBannenberg in https://github.com/spatie/db-dumper/pull/219
New Contributors
- @LBannenberg made their first contribution in https://github.com/spatie/db-dumper/pull/219
Full Changelog: https://github.com/spatie/db-dumper/compare/3.7.1...3.7.2
-
3.7.118 Nov 2024Release notes
Open source →What's Changed
- Run tests against PHP 8.3, 8.4 too by @erikn69 in https://github.com/spatie/db-dumper/pull/215
- Update MySql.php by @diadal in https://github.com/spatie/db-dumper/pull/216
Full Changelog: https://github.com/spatie/db-dumper/compare/3.7.0...3.7.1
-
3.7.023 Sep 2024Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in #209
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #211
- Update MySql.php by @diadal in #213
New Contributors
Full Changelog: 3.6.0...3.7.0
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in https://github.com/spatie/db-dumper/pull/209
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/db-dumper/pull/211
- Update MySql.php by @diadal in https://github.com/spatie/db-dumper/pull/213
New Contributors
- @diadal made their first contribution in https://github.com/spatie/db-dumper/pull/213
Full Changelog: https://github.com/spatie/db-dumper/compare/3.6.0...3.7.0
-
3.6.024 Apr 2024Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/spatie/db-dumper/pull/205
- add doNotDumpData() for MySQL and Postgres by @jbraband in https://github.com/spatie/db-dumper/pull/208
New Contributors
- @jbraband made their first contribution in https://github.com/spatie/db-dumper/pull/208
Full Changelog: https://github.com/spatie/db-dumper/compare/3.5.0...3.6.0
-
3.5.008 Apr 2024Release notes
Open source →What's Changed
- feat: :tada: Add Feature to Skip AUTO_INCREMENT Values in MySQL Dumps by @jhonymiler in https://github.com/spatie/db-dumper/pull/207
New Contributors
- @jhonymiler made their first contribution in https://github.com/spatie/db-dumper/pull/207
Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.3...3.5.0
-
3.4.301 Apr 2024Release notes
Open source →What's Changed
- Allow set dump binary path with empty value by @mokhosh in https://github.com/spatie/db-dumper/pull/206
New Contributors
- @mokhosh made their first contribution in https://github.com/spatie/db-dumper/pull/206
Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.2...3.4.3
-
3.4.225 Dec 2023Release notes
Open source →What's Changed
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/spatie/db-dumper/pull/201
- Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/spatie/db-dumper/pull/200
- [3.x] Ensure port is a string when creating credentials file for Postgres by @RVxLab in https://github.com/spatie/db-dumper/pull/203
New Contributors
- @RVxLab made their first contribution in https://github.com/spatie/db-dumper/pull/203
Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.1...3.4.2
-
3.4.116 Dec 2023Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in https://github.com/spatie/db-dumper/pull/198
- Allow symfony/process 7.x by @thecaliskan in https://github.com/spatie/db-dumper/pull/202
New Contributors
- @thecaliskan made their first contribution in https://github.com/spatie/db-dumper/pull/202
Full Changelog: https://github.com/spatie/db-dumper/compare/3.4.0...3.4.1
-
3.4.027 Jun 2023Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in https://github.com/spatie/db-dumper/pull/194
- Add support for database URLs by @mikerockett in https://github.com/spatie/db-dumper/pull/196
New Contributors
- @mikerockett made their first contribution in https://github.com/spatie/db-dumper/pull/196
Full Changelog: https://github.com/spatie/db-dumper/compare/3.3.1...3.4.0
-
3.3.102 May 2023Release notes
Open source →What's Changed
- PHP 8.2 Build by @erikn69 in https://github.com/spatie/db-dumper/pull/180
- Add Dependabot Automation by @patinthehat in https://github.com/spatie/db-dumper/pull/182
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in https://github.com/spatie/db-dumper/pull/186
- Convert all tests to Pest by @alexmanase in https://github.com/spatie/db-dumper/pull/188
- Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/spatie/db-dumper/pull/183
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in https://github.com/spatie/db-dumper/pull/191
- Update command to use doublequotes for username by @applyACS in https://github.com/spatie/db-dumper/pull/192
New Contributors
- @dependabot made their first contribution in https://github.com/spatie/db-dumper/pull/186
- @alexmanase made their first contribution in https://github.com/spatie/db-dumper/pull/188
- @applyACS made their first contribution in https://github.com/spatie/db-dumper/pull/192
Full Changelog: https://github.com/spatie/db-dumper/compare/3.3.0...3.3.1
-
3.3.001 Sep 2022Release notes
Open source →What's Changed
- Docs: typo in README.md in column_statics by @Ayoub-Mabrouk in https://github.com/spatie/db-dumper/pull/175
- add excludeTables support for sqlite by @ariaieboy in https://github.com/spatie/db-dumper/pull/177
New Contributors
- @Ayoub-Mabrouk made their first contribution in https://github.com/spatie/db-dumper/pull/175
- @ariaieboy made their first contribution in https://github.com/spatie/db-dumper/pull/177
Full Changelog: https://github.com/spatie/db-dumper/compare/3.2.1...3.3.0
-
3.2.115 Jun 2022Release notes
Open source →What's Changed
- Update .gitattributes by @angeljqv in https://github.com/spatie/db-dumper/pull/167
- Fix: Replaced single quotes in mongodb dump command in windows env by @malconvsilva in https://github.com/spatie/db-dumper/pull/172
New Contributors
- @angeljqv made their first contribution in https://github.com/spatie/db-dumper/pull/167
- @malconvsilva made their first contribution in https://github.com/spatie/db-dumper/pull/172
Full Changelog: https://github.com/spatie/db-dumper/compare/3.2.0...3.2.1
-
3.2.010 Mar 2022Nothing published for this version
-
3.1.204 Jan 2022Nothing published for this version
-
3.1.121 Dec 2021Nothing published for this version
-
3.1.008 Dec 2021Release notes
Open source →- Add
includeTablessupport for Sqlite
Full Changelog: https://github.com/spatie/db-dumper/compare/3.0.1...3.1.0
- Add
-
3.0.101 Apr 2021 -
3.0.031 Mar 2021Release notes
Open source →- require PHP 8+
- drop all PHP 7.x support
- use PHP 8 syntax
- add
Bzip2Compressorto allow use of the bzip2 compression utility
-
2.21.124 Feb 2021Release notes
Open source →- fix attempt to generate dump over http connection when using socket (#145)
-
2.21.027 Jan 2021 -
2.20.026 Jan 2021 -
2.19.025 Jan 2021 -
2.18.010 Nov 2020 -
2.17.010 Sep 2020 -
2.16.106 May 2020 -
2.16.016 Apr 2020 -
2.15.324 Jan 2020 -
2.15.216 Jan 2020 -
2.15.011 Nov 2019 -
2.14.321 Aug 2019 -
2.14.228 Jun 2019 -
2.14.110 May 2019Release notes
Open source →- wrap the dump command in an
ifstatement when using compression (#100) - drop support for PHP 7.2 and lower
- wrap the dump command in an
-
2.14.017 Apr 2019 -
2.13.203 Mar 2019 -
2.13.101 Mar 2019 -
2.13.001 Mar 2019 -
2.12.010 Dec 2018 -
2.11.127 Sep 2018 -
2.11.026 Sep 2018 -
2.10.130 Aug 2018 -
2.10.027 Apr 2018 -
2.9.005 Mar 2018 -
2.8.220 Jan 2018 -
2.8.123 Nov 2017 -
2.8.013 Nov 2017 -
2.7.407 Nov 2017 -
2.7.309 Sep 2017 -
2.7.207 Sep 2017 -
2.7.118 Aug 2017Release notes
Open source →- made option passing more flexible by adding
--databasesoption to the MySQL dumper
- made option passing more flexible by adding
-
2.7.025 May 2017Release notes
Open source →MongoDbdumps won't be compressed by default anymore- add
enableCompressiononMongoDb
-
2.6.115 May 2017 -
2.6.013 Apr 2017 -
2.5.105 Apr 2017