PHPackages                             kaykay012/migration - 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. kaykay012/migration

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

kaykay012/migration
===================

ecshop 数据导入到 fecshop

32PHP

Since Aug 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/kaykay012/migration)[ Packagist](https://packagist.org/packages/kaykay012/migration)[ RSS](/packages/kaykay012-migration/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ecshop 数据迁移到 fecshop
====================

[](#ecshop-数据迁移到-fecshop)

涉及到的表: users, category, goods, goods\_cat, goods\_galery, volume\_price orders, order\_info,

安装
--

[](#安装)

```
composer require --prefer-dist kaykay012/migration

```

or 在根目录的`composer.json`中添加

```
"kaykay012/migration": "*"

```

然后执行

```
composer update

```

配置
--

[](#配置)

1.配置文件复制

将`vendor\kaykay012\migration\config\fecshop_migration.php` 复制到 `@common\config\fecshop_third_extensions\fecshop_migration.php`(需要创建该文件)

该文件是扩展的配置文件，通过上面的操作，加入到fecshop的插件配置中.

2.可能会遇到的错误

```
Exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: yii\console\Application::user'
in F:\phpStudy\PHPTutorial\WWW\fecshop\vendor\yiisoft\yii2\base\Component.php:154
```

解决办法: 修改文件 `vendor\fancyecommerce\fec\helpers\CUser.php`

```
    # 3.得到当前用户的id
    public static function getCurrentUserId() {
        if (!isset(Yii::$app->user)) {
            return '';
        }
        if ($identity = Yii::$app->user->identity) {
            if (isset($identity['id']) && !empty($identity['id'])) {
                return $identity['id'];
            }
        }
        return '';
    }
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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/ae733b72ac5decc98844122080108b7a903b297005bb5e7990b4432714b9239d?d=identicon)[kaykay012](/maintainers/kaykay012)

---

Top Contributors

[![kaykay012](https://avatars.githubusercontent.com/u/10083356?v=4)](https://github.com/kaykay012 "kaykay012 (5 commits)")

### Embed Badge

![Health badge](/badges/kaykay012-migration/health.svg)

```
[![Health](https://phpackages.com/badges/kaykay012-migration/health.svg)](https://phpackages.com/packages/kaykay012-migration)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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