druidfi/mysqldump-php
Pure-PHP MySQL dump library that creates SQL backups without shelling out to mysqldump. It supports tables, views, triggers, compression, and configurable output, making portable database backups easy in Laravel and PHP applications.
mysqldump cannot be shell-executed—shared hosting, locked-down containers, managed PHP platforms, or environments where binary/version drift is a problem. It should sit behind an internal BackupDriver interface, not leak into domain code.mysqldump actually unavailable or just inconvenient? What are DB size, RPO/RTO, and restore-time targets? Will this package be distributed? Which MySQL/MariaDB versions and SQL modes must be supported? Does it need consistent snapshots, compression, encryption, per-tenant exports, or point-in-time recovery? Who owns backup restore drills? Is there a tested fallback to native tooling or managed snapshots?DatabaseDumpService.mysqldump or managed snapshots, compare restore results, then feature-flag cutover. Keep native CLI or managed backup as fallback until restore drills pass.max_execution_time or worker limits. Use dedicated queue workers, off-peak scheduling, compression, table-by-table or filtered dumps where supported, and avoid web-request execution. For large or strict-RPO databases, keep native mysqldump, physical backups, or managed snapshots as the primary strategy.How can I help you explore Laravel packages today?