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
Requires
- originphp/filesystem: ^1.0
- originphp/framework: ^2.0
This package is auto-updated.
Last update: 2025-01-25 01:13:03 UTC
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
app
folder into theapp
folder (leave structure as is) -
Copy the contents of your
tests
folder into thetests
folder (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