Welcome Guest, Not a member yet? Register   Sign In
How do I update from 4.4.4 to 4.5.5?
#4

(This post was last modified: 10-10-2024, 04:50 AM by captain-sensible. Edit Reason: more more )

can you post your composer.json file please this is mine:

Code:
{
    "name": "codeigniter4/appstarter",
    "description": "CodeIgniter4 starter app",
    "license": "MIT",
    "type": "project",
    "homepage": "https://codeigniter.com",
    "support": {
        "forum": "https://forum.codeigniter.com/",
        "source": "https://github.com/codeigniter4/CodeIgniter4",
        "slack": "https://codeigniterchat.slack.com"
    },
    "require": {
        "php": "^8.1",
        "codeigniter4/framework": "4.5.5",
         "phpmailer/phpmailer": "^6.8"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9",
        "mikey179/vfsstream": "^1.6",
        "phpunit/phpunit": "^10.5.16"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Config\\": "app/Config/"
        },
        "exclude-from-classmap": [
            "**/Database/Migrations/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\Support\\": "tests/_support"
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "scripts": {
        "test": "phpunit"
    }
}



so you edit this line :
Code:
"codeigniter4/framework": "4.5.5",
and change it incremently , so yours would be :
Code:
"codeigniter4/framework": "4.4.5",

then run from a cli run composer
command and output from mine :

Code:
[andrew@darkstar CI4-CMS]$ composer upgrade
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading phpmailer/phpmailer (v6.9.1 => v6.9.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downloading phpmailer/phpmailer (v6.9.2)
  - Upgrading phpmailer/phpmailer (v6.9.1 => v6.9.2): Extracting archive
Generating optimized autoload files
27 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
How do I update from 4.4.4 to 4.5.5? - by occitan - 10-09-2024, 08:08 PM
RE: How do I update from 4.4.4 to 4.5.5? - by captain-sensible - 10-10-2024, 04:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB