Welcome Guest, Not a member yet? Register   Sign In
Upgrading from 4.3.1 not upgrade version
#1

HI , i run comand composer update , composere upgrade the dependencies but without error but if i see the version is 4.3.1 .

if i try to run composer update another time :

Code:
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Reply
#2

Check your PHP version, and the framework version in your composer.json.


Code:
    "require": {
        "php": "^7.4 || ^8.0",
        "codeigniter4/framework": "^4.0"
    },
Reply
#3

(This post was last modified: 02-26-2024, 05:19 PM by kenjis.)

(02-26-2024, 02:04 AM)kenjis Wrote: Check your PHP version, and the framework version in your composer.json.


Code:
    "require": {
        "php": "^7.4 || ^8.0",
        "codeigniter4/framework": "^4.0"
    },


This is my composer.json :

Code:
{
    "name": "codeigniter4/framework",
    "type": "project",
    "description": "The CodeIgniter framework v4",
    "homepage": "https://codeigniter.com",
    "license": "MIT",
    "require": {
        "php": "^7.4 || ^8.0",
        "ext-intl": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "laminas/laminas-escaper": "^2.9",
        "psr/log": "^1.1",
        "phpoffice/phpspreadsheet": "^1.26"
    },
    "require-dev": {
        "kint-php/kint": "^5.0.1",
        "codeigniter/coding-standard": "^1.5",
        "fakerphp/faker": "^1.9",
        "friendsofphp/php-cs-fixer": "3.13.0",
        "mikey179/vfsstream": "^1.6",
        "nexusphp/cs-config": "^3.6",
        "phpunit/phpunit": "^9.1",
        "predis/predis": "^1.1 || ^2.0"
    },
    "suggest": {
        "ext-curl": "If you use CURLRequest class",
        "ext-imagick": "If you use Image class ImageMagickHandler",
        "ext-gd": "If you use Image class GDHandler",
        "ext-exif": "If you run Image class tests",
        "ext-simplexml": "If you format XML",
        "ext-mysqli": "If you use MySQL",
        "ext-oci8": "If you use Oracle Database",
        "ext-pgsql": "If you use PostgreSQL",
        "ext-sqlsrv": "If you use SQL Server",
        "ext-sqlite3": "If you use SQLite3",
        "ext-memcache": "If you use Cache class MemcachedHandler with Memcache",
        "ext-memcached": "If you use Cache class MemcachedHandler with Memcached",
        "ext-redis": "If you use Cache class RedisHandler",
        "ext-dom": "If you use TestResponse",
        "ext-libxml": "If you use TestResponse",
        "ext-xdebug": "If you use CIUnitTestCase::assertHeaderEmitted()",
        "ext-fileinfo": "Improves mime type detection for files",
        "ext-readline": "Improves CLI::input() usability"
    },
    "autoload": {
        "psr-4": {
            "CodeIgniter\\": "system/"
        },
        "exclude-from-classmap": [
            "**/Database/Migrations/**"
        ]
    },
    "scripts": {
        "post-update-cmd": [
            "CodeIgniter\\ComposerScripts::postUpdate"
        ],
        "test": "phpunit"
    },
    "support": {
        "forum": "https://forum.codeigniter.com/",
        "source": "https://github.com/codeigniter4/CodeIgniter4",
        "slack": "https://codeigniterchat.slack.com"
    }
}


try to add "codeigniter4/framework": "^4.0" but : 

  Root package 'codeigniter4/framework' cannot require itself in its composer.json

  Did you accidentally name your root package after an external package?
Reply
#4

You did manual installation.
https://codeigniter4.github.io/CodeIgnit...anual.html
So you cannot upgrade the framework via Composer.
Reply
#5

I think not , composer update several package but note core
Reply
#6

Yes, you can update the following packages, because you have them in composer.json.
But there is no "codeigniter4/framework", so the framework is never updated.

        "laminas/laminas-escaper": "^2.9",
        "psr/log": "^1.1",
        "phpoffice/phpspreadsheet": "^1.26"
        "kint-php/kint": "^5.0.1",
        "codeigniter/coding-standard": "^1.5",
        "fakerphp/faker": "^1.9",
        "friendsofphp/php-cs-fixer": "3.13.0",
        "mikey179/vfsstream": "^1.6",
        "nexusphp/cs-config": "^3.6",
        "phpunit/phpunit": "^9.1",
        "predis/predis": "^1.1 || ^2.0"
Reply
#7

There isnt a way to update ?
-Do a new installation by composer
- Copy every folder in app on new installation

Should be a solution?
Reply
#8

If you want to upgrade the framework via Composer,
I recommend you install appstarter with Composer:
https://codeigniter4.github.io/CodeIgnit...pp-starter
and move the current app files into it.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB