定制 originphp/upgrade 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. convert the old folder structure to the new structure and update USE statements
  2. update Namespace changes
  3. warn you of features that you are using that might have changed/removed or require action

Usage

  1. Make sure you have removed all previous deprecation warnings from your app using version 1.33 or higher.
  2. Backup your files
  3. create a new project
$ composer create-project originphp/app app-v2
  1. install this pluign
$ cd app-v2
$ composer require originphp/upgrade
  1. Copy the contents of your app folder into the app folder (leave structure as is)

  2. Copy the contents of your tests folder into the tests folder (leave structure as is)

  3. 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)

  1. Run

This will run and make the changes it can, then it will list possible things which need your attention

$ bin/console upgrade
  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固