Download the PHP package oihana/php-mysql without Composer
On this page you can find all versions of the php package oihana/php-mysql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oihana/php-mysql
More information about oihana/php-mysql
Files in oihana/php-mysql
Package php-mysql
Short Description MySQL utilities for PHP 8.4+: DSN builder, robust PDO connection builder, and high-level admin model for managing databases, users, privileges and tables.
License MPL-2.0
Homepage https://github.com/BcommeBois/oihana-php-mysql
Informations about the package php-mysql
Oihana PHP - Mysql

MySQL utilities for PHP 8.4+: DSN builder, robust PDO connection builder, and a high-level admin model for managing databases, users, privileges and tables.
๐ Documentation
Full project documentation is available at:
๐ https://bcommebois.github.io/oihana-php-mysql
๐ฆ Installation
Requires PHP 8.4+ and
ext-pdo
Install via Composer:
โจ Features
MysqlDSNโ build a MySQL DSN string from a structured configuration (host, port, dbname, charset, unix socket).MysqlPDOBuilderโ create a configuredPDOinstance with sane defaults, optional validation, and easy override of options.MysqlModelโ high-level administrative model on top of PDO to manage databases, users, privileges and tables.- Traits โ reusable building blocks (
MysqlDatabaseTrait,MysqlUserTrait,MysqlPrivilegeTrait,MysqlTableTrait,MysqlAssertionsTrait,MysqlRootTrait). - Enums โ
MysqlParam,MysqlPrivilegesfor strongly-typed configuration keys and privilege names.
๐ Quick start
๐งฐ Usage
Build a DSN
Build a PDO connection
Administrative operations
โ Running Unit Tests
To run all tests:
To run a specific test file:
๐ค Contributing
Contributions are welcome! Please:
- Open an issue for discussion before large changes
- Write tests for new features and bug fixes
- Run the full test suite locally before submitting a PR
๐๏ธ Changelog
See CHANGELOG.md for notable changes.
๐งพ License
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
๐ค About the author
- Author: Marc ALCARAZ (aka eKameleon)
- Mail: [email protected]
- Website: http://www.ooop.fr
๐ ๏ธ Generate the Documentation
We use phpDocumentor to generate the documentation into the ./docs folder.
๐ Related packages
oihana/php-systemโ standard set of PHP helpers and tools (PDO model, logging, init, ...):https://github.com/BcommeBois/oihana-php-systemoihana/php-coreโ core helpers and utilities used by this library:https://github.com/BcommeBois/oihana-php-coreoihana/php-enumsโ a collection of strongly-typed constant enumerations for PHP:https://github.com/BcommeBois/oihana-php-enumsoihana/php-reflectโ reflection and hydration utilities:https://github.com/BcommeBois/oihana-php-reflect
All versions of php-mysql with dependencies
ext-pdo Version *
oihana/php-core Version dev-main
oihana/php-enums Version dev-main
oihana/php-reflect Version dev-main
oihana/php-system Version dev-main
php-di/php-di Version ^7.0
psr/container Version ^2.0