yiisoft / yii-bootstrap5

Yii Framework Bootstrap 5 support
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
62 stars 19 forks source link

Could not find package yiisoft/yii-bootstrap5 #43

Closed Jonyx4 closed 3 years ago

Jonyx4 commented 3 years ago

Hello there. Trying to install package on a clean yii2 installation, but i'm receiving this error message. Any idea why?

php composer.phar require yiisoft/yii-bootstrap5

  [InvalidArgumentException]                      
  Could not find package yiisoft/yii-bootstrap5.  

  Did you mean one of these?                      
      yiisoft/yii-bootstrap5                      
      yiisoft/yii-bootstrap4                      

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...

Regards!

Mister-42 commented 3 years ago

Yii2? Not sure if that would compute

samdark commented 3 years ago

There is such a package: https://packagist.org/packages/yiisoft/yii-bootstrap5

nssmart commented 3 years ago

I'm experiencing the same issue. Yes, there is such a package online, see the error itself. Composer does offer it typed exactly as typed by the author.

vjik commented 3 years ago

I'm experiencing the same issue. Yes, there is such a package online, see the error itself. Composer does offer it typed exactly as typed by the author.

Can you show composer.json?

samdark commented 3 years ago

image

nssmart commented 3 years ago

Just installed bootstrap4, but here's the contents that was there at the moment of executing "composer require yiisoft/yii-bootstrap5":

    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "framework", "advanced", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.6.0",
        "yiisoft/yii2": "~2.0.14",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",
        "tijsverkoyen/css-to-inline-styles": "^2.2",
        "russ666/yii2-countdown": "^0.2.0",
        "himiklab/yii2-recaptcha-widget": "^2.1"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.1.0",
        "yiisoft/yii2-gii": "~2.1.0",
        "yiisoft/yii2-faker": "~2.0.0",
        "codeception/codeception": "^4.0",
        "codeception/module-asserts": "^1.0",
        "codeception/module-yii2": "^1.0",
        "codeception/module-filesystem": "^1.0",
        "codeception/verify": "~0.5.0 || ~1.1.0",
        "symfony/browser-kit": ">=2.7 <=4.2.4"
    },
    "config": {
        "process-timeout": 1800,
        "fxp-asset": {
            "enabled": false
        }
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}
nssmart commented 3 years ago

image

samdark commented 3 years ago
  1. This is not Yii 2 package. This is Yii 3 package.
  2. There's currently no Bootstrap 5 for Yii 2.
nssmart commented 3 years ago

Thanks a lot - now I know Yii3 exists! :) p.s. Well, kinda unofficially - yiiframework.comstill offers 2.0.42 as the latest, as far as I can see.

madan-goudar commented 2 years ago

Can we use bootstrap version 4 in Yii 1.1.25 ? how to upgrade from version 3 to 4 in Yii 1.1.25 veriosn?