PackageTrack
Sign in Get early access

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 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 85
  1. 4.1.1 04 May 2026
    Release notes

    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

    Open source →
    Release notes

    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

    Open source →
  2. 4.1.0 19 Mar 2026
    Release notes

    What's Changed

    • Downgrade PHP requirement from ^8.4 to ^8.3 by @erikn69 in #243
    Open source →
    Release notes

    What's Changed

    • Downgrade PHP requirement from ^8.4 to ^8.3 by @erikn69 in https://github.com/spatie/db-dumper/pull/243
    Open source →
  3. 4.0.0 15 Feb 2026
    Release notes

    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

    Full Changelog: 3.8.3...4.0.0

    Open source →
    Release notes

    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
    Open source →
  4. 3.8.3 05 Jan 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.8.2...3.8.3

    Open source →
    Release notes

    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

    Open source →
  5. 3.8.2 10 Dec 2025
    Release notes

    What's Changed

    • added ssl flag override to allow for custom server flags by @aschkenasy in #236

    New Contributors

    Full Changelog: 3.8.1...3.8.2

    Open source →
    Release notes

    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

    Open source →
  6. 3.8.1 26 Nov 2025
    Release notes

    What's Changed

    Full Changelog: 3.8.0...3.8.1

    Open source →
    Release notes

    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

    Open source →
  7. 3.8.0 14 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.7.2...3.8.0

    Open source →
    Release notes

    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

    Open source →
  8. 3.7.2 14 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.7.1...3.7.2

    Open source →
    Release notes

    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

    Open source →
  9. 3.7.1 18 Nov 2024
    Release notes

    What's Changed

    Full Changelog: 3.7.0...3.7.1

    Open source →
    Release notes

    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

    Open source →
  10. 3.7.0 23 Sep 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.6.0...3.7.0

    Open source →
    Release notes

    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

    Open source →
  11. 3.6.0 24 Apr 2024
    Release notes

    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

    Open source →
  12. 3.5.0 08 Apr 2024
    Release notes

    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

    Open source →
  13. 3.4.3 01 Apr 2024
    Release notes

    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

    Open source →
  14. 3.4.2 25 Dec 2023
    Release notes

    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

    Open source →
  15. 3.4.1 16 Dec 2023
    Release notes

    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

    Open source →
  16. 3.4.0 27 Jun 2023
    Release notes

    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

    Open source →
  17. 3.3.1 02 May 2023
    Release notes

    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

    Open source →
  18. 3.3.0 01 Sep 2022
    Release notes

    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

    Open source →
  19. 3.2.1 15 Jun 2022
    Release notes

    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

    Open source →
  20. 3.2.0 10 Mar 2022

    Nothing published for this version

  21. 3.1.2 04 Jan 2022

    Nothing published for this version

  22. 3.1.1 21 Dec 2021

    Nothing published for this version

  23. 3.1.0 08 Dec 2021
    Release notes
    • Add includeTables support for Sqlite

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

    Open source →
  24. 3.0.1 01 Apr 2021
    Release notes
    • remove type declaration that causes errors (#151)
    Open source →
  25. 3.0.0 31 Mar 2021
    Release notes
    • require PHP 8+
    • drop all PHP 7.x support
    • use PHP 8 syntax
    • add Bzip2Compressor to allow use of the bzip2 compression utility
    Open source →
  26. 2.21.1 24 Feb 2021
    Release notes
    • fix attempt to generate dump over http connection when using socket (#145)
    Open source →
  27. 2.21.0 27 Jan 2021
    Release notes
    • fix: make the process more extensible, avoid touching anything (#141)
    Open source →
  28. 2.20.0 26 Jan 2021
    Release notes
    • revert changes in 2.19.0
    Open source →
  29. 2.19.0 25 Jan 2021
    Release notes
    • fix: add some public functions that allow extensibility (#139)
    Open source →
  30. 2.18.0 10 Nov 2020
    Release notes
    • support PHP 8
    Open source →
  31. 2.17.0 10 Sep 2020
    Release notes
    • add doNotUseColumnStatistics
    Open source →
  32. 2.16.1 06 May 2020
    Release notes
    • fix using gzip compression on windows (#130)
    Open source →
  33. 2.16.0 16 Apr 2020
    Release notes
    • allow for adding options after the db name (#129)
    Open source →
  34. 2.15.3 24 Jan 2020
    Release notes
    • Fix incomplete credential guard (#126)
    Open source →
  35. 2.15.2 16 Jan 2020
    Release notes
    • Fix sqlite3 dump on Windows
    Open source →
  36. 2.15.0 11 Nov 2019
    Release notes
    • add doNotCreateTables to Postgres driver (#116)
    Open source →
  37. 2.14.3 21 Aug 2019
    Release notes
    • fix memory leak (issue #109)
    Open source →
  38. 2.14.2 28 Jun 2019
    Release notes
    • Determine quotes for windows for MongoDB and PostgreSql dumps (#107)
    Open source →
  39. 2.14.1 10 May 2019
    Release notes
    • wrap the dump command in an if statement when using compression (#100)
    • drop support for PHP 7.2 and lower
    Open source →
  40. 2.14.0 17 Apr 2019
    Release notes
    • add --skip-lock-tables and --quick option (#95)
    Open source →
  41. 2.13.2 03 Mar 2019
    Release notes
    • fix process warnings
    Open source →
  42. 2.13.1 01 Mar 2019
    Release notes
    • remove pipefail operator when compressing dump
    Open source →
  43. 2.13.0 01 Mar 2019
    Release notes
    • add ability to specify all databases as MySQL option
    Open source →
  44. 2.12.0 10 Dec 2018
    Release notes
    • add doNotCreateTables
    Open source →
  45. 2.11.1 27 Sep 2018
    Release notes
    • add useExtension
    Open source →
  46. 2.11.0 26 Sep 2018
    Release notes
    • add Compressor
    Open source →
  47. 2.10.1 30 Aug 2018
    Release notes
    • allow destination paths to have a space character
    Open source →
  48. 2.10.0 27 Apr 2018
    Release notes
    • add support for compressing dumps
    Open source →
  49. 2.9.0 05 Mar 2018
    Release notes
    • add support for setting --set-gtid-purged
    Open source →
  50. 2.8.2 20 Jan 2018
    Release notes
    • add support for Symfony 4
    Open source →
  51. 2.8.1 23 Nov 2017
    Release notes
    • fix SQLite dump
    Open source →
  52. 2.8.0 13 Nov 2017
    Release notes
    • add setAuthenticationDatabase
    Open source →
  53. 2.7.4 07 Nov 2017
    Release notes
    • fix for dumping a MongoDB without username or password
    Open source →
  54. 2.7.3 09 Sep 2017
    Release notes
    • allow empty passwords for MongoDB dumps
    Open source →
  55. 2.7.2 07 Sep 2017
    Release notes
    • make --databases optional
    Open source →
  56. 2.7.1 18 Aug 2017
    Release notes
    • made option passing more flexible by adding --databases option to the MySQL dumper
    Open source →
  57. 2.7.0 25 May 2017
    Release notes
    • MongoDb dumps won't be compressed by default anymore
    • add enableCompression on MongoDb
    Open source →
  58. 2.6.1 15 May 2017
    Release notes
    • fix sqlite dumper
    Open source →
  59. 2.6.0 13 Apr 2017
    Release notes
    • add support for MongoDB
    Open source →
  60. 2.5.1 05 Apr 2017
    Release notes
    • prefix excluded tables with database name when dumping a MySql db
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive