PHPackages                             bariew/yii1-to-yii2 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bariew/yii1-to-yii2

ActiveProject[Utility &amp; Helpers](/categories/utility)

bariew/yii1-to-yii2
===================

Yii1 to Yii2 migration project

00PHP

Since Jun 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bariew/yii2yii-project)[ Packagist](https://packagist.org/packages/bariew/yii1-to-yii2)[ RSS](/packages/bariew-yii1-to-yii2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

UPGRADE PLAN

1. Change upgrade.php content according to current project
2. Run upgrade script

```
    php vendor/bariew/yii2yii/script.php upgrade.php

```

3. Fix manually

- UserIdentity
- WebUser, login
- CDbCriteria

YII2 upgrade
------------

[](#yii2-upgrade)

- Check -&gt;isNewRecord in beforeSave/afterSave
- Check 'condition' appearance
- Check rbac configs
- 'getFlash' does not delete flash by default
- search for "label for=" - since Html::checkbox no longer generates id automatically
- module-&gt;id does not have submodule (not == module/submodule, but just 'submodule')
- urls should start with / if not relative - replace 'module/controller/action' with '/module/controller/action'
- remove errorSummary(
- model rules first element to array and 'on', 'except' =&gt; 'asd,ads' to array
- -&gt;update() not working for 1 attribute
- search for "js:" js usage
- $form-&gt;field()-&gt;label(false)-&gt;checkbox() will still render label
- find not echoing render: ^(?!.*(echo|=|return)).*$this-&amp;gt;render.\*$
- createUrl
- look for **CLASS** , get\_class( , new $class for it did not have namespaces
- look for camelCase action call or rewrite controller action detect
- array((\[^\\)\\(\\'\\"\]+)) -&gt; \[$1\] // to new array look
- DatePicker -&gt; 'model'=&gt;$model // add model to options
- (createUrl(\\s\*)('\[^\\'\]+') -&gt; $1\[$2\] // use arrays for creating urls

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8214f36975034f4134506744cd956e8415491006c1b3512af22bf75f91165f06?d=identicon)[bariew](/maintainers/bariew)

---

Top Contributors

[![bariew](https://avatars.githubusercontent.com/u/827508?v=4)](https://github.com/bariew "bariew (3 commits)")

### Embed Badge

![Health badge](/badges/bariew-yii1-to-yii2/health.svg)

```
[![Health](https://phpackages.com/badges/bariew-yii1-to-yii2/health.svg)](https://phpackages.com/packages/bariew-yii1-to-yii2)
```

###  Alternatives

[mpetrovich/dash

A functional programming library for PHP. Inspired by Underscore, Lodash, and Ramda.

10330.0k1](/packages/mpetrovich-dash)[njxqlus/filament-relation-manager-component

Use Filament Relation Manager Everywhere!

47110.9k4](/packages/njxqlus-filament-relation-manager-component)[fluidtypo3/builder

The builder package from FluidTYPO3

259.6k1](/packages/fluidtypo3-builder)

PHPackages © 2026

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