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)210.5k5[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 1w ago

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

Nc2ToNc3
========

[](#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://camo.githubusercontent.com/7583a451c6893fc8a7eab9f6068b40cc27b94274b350d15bb2bd35acc605ee11/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4e6574436f6d6d6f6e73332f4e6332546f4e63332f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/NetCommons3/Nc2ToNc3?branch=master)[![Stable Version](https://camo.githubusercontent.com/48f46c4f41a68204caa0aa5c4fd8d569c6997ae390ba61464a4b5e86cc8b7560/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6574636f6d6d6f6e732f6e63322d746f2d6e63332e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/netcommons/nc2-to-nc3)

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

### 手順

[](#手順)

1. [NC2を最新版にアップデート](#nc2%E3%82%92%E6%9C%80%E6%96%B0%E7%89%88%E3%81%AB%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88)
2. [NC2の準備](#nc2%E3%81%AE%E6%BA%96%E5%82%99)
3. [NC3の準備](#nc3%E3%81%AE%E6%BA%96%E5%82%99)
4. [NC3のバックアップ](#nc3%E3%81%AE%E3%83%90%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97)
5. [移行ツール実行](#%E7%A7%BB%E8%A1%8C%E3%83%84%E3%83%BC%E3%83%AB%E5%AE%9F%E8%A1%8C)

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

[](#nc2を最新版にアップデート)

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

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

#### NC2の準備

[](#nc2の準備)

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

#### NC3の準備

[](#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のバックアップ)

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

移行ツール実行
-------

[](#移行ツール実行)

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

```

**オプション**

意味値の例--databaseNC2のDB名nc2421--prefixNC2の（DB内の）テーブル名のprefixnc\_--upload\_pathNC2でアップロードしたファイルがあるディレクトリ/var/www/html/nc2/html/webapp/uploads/--base\_urlNC2のベースURL--nc3baseNC3のベースパス（ドキュメントルートからの相対パス）/nc3### 例)

[](#例)

**環境例**

URLDB名prefixドキュメントルートNC2nc2421nc/var/www/html/nc2/NC3nc3なし/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

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

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

953d 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)
