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 2w 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 13% 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://avatars.githubusercontent.com/u/10083356?v=4)[Kai](/maintainers/kaykay012)[@kaykay012](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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