PHPackages                             netcommons/nc2-to-nc3 - 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. netcommons/nc2-to-nc3

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

netcommons/nc2-to-nc3
=====================

Nc2ToNc3 Plugin for NetCommons3

3.3.7.0(2y ago)212.6k5[1 PRs](https://github.com/NetCommons3/Nc2ToNc3/pulls)2LicenseRef-NetCommonsPHP

Since Sep 29Pushed 2y ago18 watchersCompare

[ Source](https://github.com/NetCommons3/Nc2ToNc3)[ Packagist](https://packagist.org/packages/netcommons/nc2-to-nc3)[ Docs](http://www.netcommons.org/)[ RSS](/packages/netcommons-nc2-to-nc3/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (36)Versions (22)Used By (2)

```
Nc2ToNc3
==============

[![Tests Status](https://github.com/NetCommons3/Nc2ToNc3/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/NetCommons3/Nc2ToNc3/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/NetCommons3/Nc2ToNc3/badge.svg?branch=master)](https://coveralls.io/r/NetCommons3/Nc2ToNc3?branch=master)
[![Stable Version](https://img.shields.io/packagist/v/netcommons/nc2-to-nc3.svg?label=stable)](https://packagist.org/packages/netcommons/nc2-to-nc3)

Nc2ToNc3(移行ツール)は、同一サーバにNC2のデータとNC3サイトを用意して移行するプラグインです。
NC2最新版（2.4.2.1）からNC3最新版に移行します。

### 手順

1. [NC2を最新版にアップデート](#nc2を最新版にアップデート)
1. [NC2の準備](#nc2の準備)
1. [NC3の準備](#nc3の準備)
1. [NC3のバックアップ](#nc3のバックアップ)
1. [移行ツール実行](#移行ツール実行)

#### NC2を最新版にアップデート

NC2が最新版でなかったら、最新版2.4.2.1にアップデートします。

[NC2を最新版2.4.2.1にアップデート（外部リンク）](https://github.com/netcommons/NetCommons2/releases)

#### NC2の準備

現状NC2のDB及びNC2のアップロードファイルを取得して、NC3と同じ環境にDBインポート及びファイル配置をしてください。

#### NC3の準備

NC3を新規インストールします。[NC3インストール（外部リンク）](https://www.netcommons.org/NetCommons3/download#!#frame-83)

NC3を既にインストール済みの場合、最新版にアップデートします。[NC3アップデート（外部リンク）](https://www.netcommons.org/NetCommons3/download#!#frame-156)

Nc2ToNc3は、app/Plugin配下に配置されています。

```
NetCommons3のパス/app/Plugin/Nc2ToNc3
```

#### NC3のバックアップ

**※ 必ずNC3のDB、および、NC3のアップロードファイルをバックアップして、いつでもリストアできるようにしてから実行してください。**

## 移行ツール実行

```
cd NetCommons3のパス/app
./Console/cake Nc2ToNc3 --database NC2のDB名 --prefix NC2のテーブル名のprefix --upload_path NC2でアップロードしたファイルがあるディレクトリ --base_url NC2のベースURL --nc3base NC3のベースパス
```

**オプション**

|               | 意味                                                |値の例
|---------------| --------------------------------------------------- | ------
|--database     |NC2のDB名                                            |nc2421
|--prefix       |NC2の（DB内の）テーブル名のprefix                      |nc_
|--upload_path  |NC2でアップロードしたファイルがあるディレクトリ          |/var/www/html/nc2/html/webapp/uploads/
|--base_url     |NC2のベースURL                                        |http://example.com/nc2/html
|--nc3base      |NC3のベースパス（ドキュメントルートからの相対パス）      | /nc3

### 例)

**環境例**

|         | URL                         |DB名    |prefix   |ドキュメントルート
|---------| --------------------------- | ------ | ------- | ------
|NC2      |http://example.com/nc2/html  |nc2421  |nc       |/var/www/html/nc2/
|NC3      |http://example.com/nc3       |nc3	 |なし     |/var/www/html/nc3/

**コマンド例**

```
cd /var/www/html/nc3/app
./Console/cake Nc2ToNc3 --database nc2421 --prefix nc_ --upload_path /var/www/html/nc2/html/webapp/uploads/ --base_url http://example.com/nc2/html --nc3base /nc3
```

#### 不具合情報

現在確認されている不具合は、[GithubのNetCommons3リポジトリのissue、zz Nc2ToNc3（移行ツール）ラベル](https://github.com/NetCommons3/NetCommons3/issues?q=is%3Aissue+is%3Aopen+label%3A%22zz+Nc2ToNc3%EF%BC%88%E7%A7%BB%E8%A1%8C%E3%83%84%E3%83%BC%E3%83%AB%EF%BC%89%22)で確認できます。

#### ドキュメント

[データ対応表.pdf](https://github.com/NetCommons3/NetCommons3Docs/blob/gh-pages/NC2toNC3/%E3%83%87%E3%83%BC%E3%82%BF%E5%AF%BE%E5%BF%9C%E8%A1%A8.pdf)
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 58.7% 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

Every ~169 days

Recently: every ~247 days

Total

14

Last Release

1044d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cec0c574ba55af6453ca29a0a8eae15b9ba191cc5361338f930204af915e009b?d=identicon)[NetCommons](/maintainers/NetCommons)

![](https://www.gravatar.com/avatar/3fac67e47e97c9b761aa7bea48a2a7d9f9e7514244224d87d55d664fb40416b5?d=identicon)[s-nakajima](/maintainers/s-nakajima)

---

Top Contributors

[![kteraguchi](https://avatars.githubusercontent.com/u/3079266?v=4)](https://github.com/kteraguchi "kteraguchi (337 commits)")[![akagane99](https://avatars.githubusercontent.com/u/2756509?v=4)](https://github.com/akagane99 "akagane99 (117 commits)")[![RyujiAMANO](https://avatars.githubusercontent.com/u/1955236?v=4)](https://github.com/RyujiAMANO "RyujiAMANO (57 commits)")[![s-nakajima](https://avatars.githubusercontent.com/u/4422735?v=4)](https://github.com/s-nakajima "s-nakajima (34 commits)")[![RikaFujiwara](https://avatars.githubusercontent.com/u/3078370?v=4)](https://github.com/RikaFujiwara "RikaFujiwara (11 commits)")[![ohga21](https://avatars.githubusercontent.com/u/2639569?v=4)](https://github.com/ohga21 "ohga21 (10 commits)")[![Withone10](https://avatars.githubusercontent.com/u/30286243?v=4)](https://github.com/Withone10 "Withone10 (4 commits)")[![ryu818](https://avatars.githubusercontent.com/u/2410721?v=4)](https://github.com/ryu818 "ryu818 (2 commits)")[![notoyuichi](https://avatars.githubusercontent.com/u/41976619?v=4)](https://github.com/notoyuichi "notoyuichi (2 commits)")

---

Tags

cakephpnc2-to-nc3

### Embed Badge

![Health badge](/badges/netcommons-nc2-to-nc3/health.svg)

```
[![Health](https://phpackages.com/badges/netcommons-nc2-to-nc3/health.svg)](https://phpackages.com/packages/netcommons-nc2-to-nc3)
```

PHPackages © 2026

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