originphp/upgrade

Upgrade plugin for OriginPHP

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:origin-plugin

1.0.0 2019-10-24 13:04 UTC

This package is auto-updated.

Last update: 2024-04-24 23:25:26 UTC


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