mwx / tools-mysql
MySQL tooling: mysql/mysqldump wrappers, database settings and export configuration, phinx bridge
0.2.0
2026-09-24 10:29 UTC
Requires
- php: ^8.2
- ext-mysqli: *
- ext-pdo: *
- mwx/lib: ^0.1
- mwx/tools: ^0.3
- robmorgan/phinx: ^0.16.9
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
| Namespace | What 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.