originphp/upgrade
Composer 安装命令:
composer require originphp/upgrade
包简介
Upgrade plugin for OriginPHP
README 文档
README
This is a plugin to assist upgrading from 1.x to 2.0.
It does the following
- convert the old folder structure to the new structure and update USE statements
- update Namespace changes
- warn you of features that you are using that might have changed/removed or require action
Usage
- Make sure you have removed all previous deprecation warnings from your app using version 1.33 or higher.
- Backup your files
- create a new project
$ composer create-project originphp/app app-v2
- install this pluign
$ cd app-v2
$ composer require originphp/upgrade
-
Copy the contents of your
appfolder into theappfolder (leave structure as is) -
Copy the contents of your
testsfolder into thetestsfolder (leave structure as is) -
Do a DRY run
$ bin/console upgrade --dry-run
This will show you what it will change automatically and possible issues that need to be looked due to changes ( model callbacks, controller callbacks, composer dependencies, or public properties)
- Run
This will run and make the changes it can, then it will list possible things which need your attention
$ bin/console upgrade
- Settings
The following files might custom settings that you need to copy over
- composer.json
- config/.env.php
- config/.env.php.default
- config/application.php
- config/routes.php
- database/schema.php
- database/seed.php
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-24