yiisoft / db-mysql
MySQL/MariaDB driver for Yii Database
Fund package maintenance!
Opencollective
yiisoft
Installs: 154 710
Dependents: 10
Suggesters: 4
Security: 0
Stars: 40
Watchers: 16
Forks: 17
Open Issues: 7
pkg:composer/yiisoft/db-mysql
Requires
- php: 8.1 - 8.5
- ext-ctype: *
- ext-pdo: *
- psr/log: ^2.0|^3.0
- yiisoft/db: ^2.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.3
- friendsofphp/php-cs-fixer: ^3.89.1
- maglnet/composer-require-checker: ^4.7.1
- phpunit/phpunit: ^10.5.45
- rector/rector: ^2.0.10
- spatie/phpunit-watcher: ^1.24
- vlucas/phpdotenv: ^5.6.1
- yiisoft/aliases: ^2.0
- yiisoft/log-target-file: ^2.0.1
- yiisoft/psr-dummy-provider: ^1.0
- yiisoft/test-support: ^3.0
- yiisoft/var-dumper: ^1.7
Provides
- yiisoft/db-implementation: 1.0.0
This package is auto-updated.
Last update: 2025-12-06 22:38:35 UTC
README
Yii Database MySQL/MariaDB Driver
MySQL and MariaDB driver for Yii Database is a package for working with MySQL and MariaDB databases in PHP. It includes a database connection class, a command builder class, and a set of classes for representing database tables and rows as PHP objects.
Driver supports MySQL 5.7 or higher, and MariaDB 10.4 or higher.
Requirements
- PHP 8.1 - 8.5.
pdo_mysqlPHP extension.ctypePHP extension.
Installation
The package could be installed with Composer:
composer require yiisoft/db-mysql
Important
See also installation notes for yiisoft/db
package.
Documentation
For config connection to MySQL and MariaDB database check Connection config for MySQL and MariaDB.
Check the yiisoft/db docs to learn about usage.
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii Database MySQL/MariaDB Driver is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.