MySQL driver for Yii Database

1.1.0 2023-11-12 16:24 UTC


68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667 68747470733a2f2f6c6162732e6d7973716c2e636f6d2f636f6d6d6f6e2f6c6f676f732f6d7973716c2d6c6f676f2e737667

MySQL and MariaDB driver for Yii Database

MySQL driver for Yii Database allows developers to access and interact with MySQL and MariaDb databases. It provides a set of classes and methods for connecting to a MySQL and MariaDb database, executing SQL queries, and managing data within the database. The package is designed to be easy to use and integrate, and supports a wide range of MySQL, MariaDb features and functions. It also includes support for transactions, database schema management, and error handling.

It is used in [Yii Framework] but can be used separately.

Latest Stable Version Total Downloads rector codecov StyleCI type-coverage

Support version

PHP Mysql/MariaDb CI-Actions
8.0-8.2 5.7-8.0/10.4-10.10 build ansi-mode Mutation testing badge static analysis


The package could be installed via composer:

composer require yiisoft/db-mysql


For config connection to Mysql, MariaDb database check Connecting MySQL/MariaDb.

Check the documentation to learn about usage.


Check the documentation to learn about testing.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack


The Yii DataBase MySQL Extension is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.