Search by

mwx / tools-mysql

metaworx

MySQL tooling: mysql/mysqldump wrappers, database settings and export configuration, phinx bridge

0.2.0 2026-09-24 10:29 UTC

This package is auto-updated.

Last update: 2026-09-24 09:10:26 UTC


README

MySQL tooling on top of mwx/tools. Owns the mwx\Tools\Db\ and mwx\Tools\Mysql\ namespace prefixes.

Contents

NamespaceWhat it holds
mwx\Tools\Db\Database-agnostic plumbing: DbConfig, DbSettingsInterface/Trait, DbSettingsEmpty (null object), export-file config, DbEnvironmentInterface
mwx\Tools\Mysql\Mysql tool wrapper (mysql/mysqldump, MAMP detection, defaults), DbSettingsMysql(ExportFile), PhinxCommandHelper

The environment contract

Applications provide their environment objects by implementing DbEnvironmentInterface (extends ConfigPathableInterface): isRemote(): bool, getSshCommand(): ?string, and replaceInValue(...). Remote environments are reached through the ssh command; local ones return null.

Dependencies

mwx/tools, ext-mysqli, ext-pdo, robmorgan/phinx.

Install

composer require mwx/tools-mysql

MIT license.