comoco / mysqldump-php
use dumpmysql command as a php class
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/comoco/mysqldump-php
Requires
- symfony/process: ^3.0
This package is auto-updated.
Last update: 2025-09-25 15:56:06 UTC
README
use dumpmysql command as a php class
Installation
composer require comoco/mysqldump-php
Requirements
- mysqldump
Usage
<?php use comoco\Mysqldump\Mysqldump; $mysqldump = new Mysqldump; $content = $mysqldump->setHost('localhost') ->setPort(3306) ->setUser('username') ->setPassword('password') ->setDatabase('database') ->addTable('table1', 'id < 2 || id > 6') ->disableExtendedInsert() ->disableLockTable() ->hexBlob() ->completeInsert() ->withoutComments() ->withoutAddLock() ->setGtidPurged('OFF') ->dump();