clouddueling/mysqldump-php — pull request #20 by rapid2k1 (2013-06-02 01:37:26+00:00)
Title: Issue #19 Adjust options names in accordance with original ones, using arrays with options

Totally agree, options names should follow mysqldump parameters keys whenever possible. This patch renames options and implements an array to pass config options to MYSQLDump class.

$dumpSettings = array(
'include-tables' => array('table1', 'table2'),
'exclude-tables' => array('table3', 'table4'),
'compress' => true,
'add-drop-table' => true,
'no-data' => true);

$dump = new MySQLDump('forum','forum_user','forum_pass','localhost', $dumpSettings);

ps.- following PHP-FIG in new code.