CodeIgniter Forums
Updating myth auth library via composer - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Support (
+--- Thread: Updating myth auth library via composer (/showthread.php?tid=78066)

Updating myth auth library via composer - boddah85 - 11-25-2020


I still trying to learn ci4 and some new things like composer ;]

I've installed framework via composer and then myauth library. I have some problem with filters
Declaration of Myth\Auth\Filters\LoginFilter::before(CodeIgniter\HTTP\RequestInterface $request) must be compatible with CodeIgniter\Filters\FilterInterface::before(CodeIgniter\HTTP\RequestInterface $request, $arguments = NULL)
 And as I see there's fix to it. However I can't update libary.

When Im trying
composer update myth
There's error
Package "myth" listed for update is not installed. Ignoring

When im trying "composer require myth/auth"
Nothing to install or update

My composer.json looks like that
    "name": "codeigniter4/appstarter",
    "type": "project",
    "description": "CodeIgniter4 starter app",
    "homepage": "",
    "license": "MIT",
    "minimum-stability": "beta",
    "require": {
        "php": ">=7.2",
        "codeigniter4/framework": "^4",
        "myth/auth": "^[email protected]"
    "require-dev": {
        "fzaninotto/faker": "^[email protected]",
        "mikey179/vfsstream": "1.6.*",
        "phpunit/phpunit": "^8.5"
    "autoload-dev": {
        "psr-4": {
            "Tests\\Support\\": "tests/_support"
    "scripts": {
        "post-update-cmd": [
            "@composer dump-autoload"
        "test": "phpunit"
    "support": {
        "forum": "",
        "source": "",
        "slack": ""
What im doing wrong? ;/


RE: Updating myth auth library via composer - InsiteFX - 11-25-2020

When was the last time you installed Myth/Auth? Because it was just updated a few days ago.

I don't use Composer but I do have it installed here, I manually install Myth/Auth here.