PHPackages                             nkovacs/yii2-mysql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nkovacs/yii2-mysql

ActiveYii2-extension[Database &amp; ORM](/categories/database)

nkovacs/yii2-mysql
==================

Replacement MySQL Schema for Yii 2 with fixes

0.1.0(10y ago)16.7kMITPHP

Since Jun 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nkovacs/yii2-mysql)[ Packagist](https://packagist.org/packages/nkovacs/yii2-mysql)[ RSS](/packages/nkovacs-yii2-mysql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

MySQL Schema extension
======================

[](#mysql-schema-extension)

Replacement MySQL Schema for Yii 2 with fixes.

Currently the only change is that `Schema::TYPE_TEXT` defaults to 'mediumtext'. This can be changed by setting the `defaultTextType` property of the Schema.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist nkovacs/yii2-mysql "*"

```

or add

```
"nkovacs/yii2-mysql": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, add the following to your configuration file to overwrite the default mysql schema :

```
Yii::$container->set('yii\db\mysql\Schema', 'nkovacs\mysql\Schema');
```

To change options :

```
Yii::$container->set('yii\db\mysql\Schema', [
    'class' => 'nkovacs\mysql\Schema',
    'defaultTextType' => 'longtext',
]);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3976d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2269242?v=4)[Nikola Kovacs](/maintainers/nkovacs)[@nkovacs](https://github.com/nkovacs)

---

Top Contributors

[![nkovacs](https://avatars.githubusercontent.com/u/2269242?v=4)](https://github.com/nkovacs "nkovacs (1 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/nkovacs-yii2-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/nkovacs-yii2-mysql/health.svg)](https://phpackages.com/packages/nkovacs-yii2-mysql)
```

###  Alternatives

[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
