mwx/tools-mysql

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

dev-master 2026-08-27 09:45 UTC

This package is auto-updated.

Last update: 2026-08-27 19:04:46 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

Pre-publication: via the monorepo's path repository (see the repository root README). Later: composer require mwx/tools-mysql.

MIT license.