{"repo":"spatie/db-dumper","free":true,"listed":false,"github":"https://github.com/spatie/db-dumper","clone":"git clone https://github.com/spatie/db-dumper.git","description":"Dump the contents of a database","language":"PHP","stars":1176,"topics":["php","database","mysql","postgresql","dump","sql"],"license":"MIT","category":"databases-storage","readme_excerpt":"Dump the contents of a database This repo contains an easy to use class to dump a database using PHP. Currently MySQL, MariaDB, PostgreSQL, SQLite and MongoDB are supported. Behind the scenes mysqldump , mariadb-dump , pg dump , sqlite3 and mongodump are used. Here are simple examples of how to create a database dump with different drivers: MySQL MariaDB PostgreSQL SQLite MongoDB Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Requirements For dumping MySQL-db's mysqldump should be installed. For dumping MariaDB-db's mariadb-dump should be installed. For dumping PostgreSQL-db's pg dump should be installed. For dumping SQLite-db's sqlite3 should be installed. For dumping MongoDB-db's mongodump should be installed. For compressing dump files, gzip and/or bzip2 should be installed. Installation You can install the package via composer: Usage This is the simplest way to create a dump of a MySql db: If you're working with PostgreSQL just use that dumper, most methods are available on both the MySql. and PostgreSql-dumper. If the mysqldump (or pg dump ) binary is installed in a non default location you can let the package know by using the setDumpBinaryPath() -func","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/db-dumper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}