2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
296 stars 142 forks source link

Bootstrap5 #476

Open srakl opened 2 years ago

srakl commented 2 years ago

I added "yiisoft/yii2-bootstrap5": "*" to composer and when i ran composer update I get

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - 2amigos/yii2-usuario[1.1.0, ..., 1.5.1] require yiisoft/yii2-bootstrap ^2.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
    - 2amigos/yii2-usuario[1.0.0, ..., 1.0.13] require yiisoft/yii2-bootstrap ^2.0.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
    - yiisoft/yii2-bootstrap[2.0.9, ..., 2.0.11] require bower-asset/bootstrap 3.4.* | 3.3.* | 3.2.* | 3.1.* -> satisfiable by bower-asset/bootstrap[v3.1.0, ..., v3.4.1].
    - yiisoft/yii2-bootstrap[2.0.1, ..., 2.0.8] require bower-asset/bootstrap 3.3.* | 3.2.* | 3.1.* -> satisfiable by bower-asset/bootstrap[v3.1.0, ..., v3.3.7].
    - yiisoft/yii2-bootstrap 2.0.0 requires bower-asset/bootstrap 3.2.* | 3.1.* -> satisfiable by bower-asset/bootstrap[v3.1.0, v3.1.1, v3.2.0].
    - You can only install one version of a package, so only one of these can be installed: bower-asset/bootstrap[v3.1.0, ..., v3.4.1, v4.0.0, ..., v4.6.2, v5.0.0, ..., v5.2.1].
    - yiisoft/yii2-bootstrap5[2.0.1, ..., 2.0.3] require bower-asset/bootstrap ^5.1.0 -> satisfiable by bower-asset/bootstrap[v5.1.0, ..., v5.2.1].
    - Root composer.json requires yiisoft/yii2-bootstrap5 * -> satisfiable by yiisoft/yii2-bootstrap5[2.0.1, 2.0.2, 2.0.3].
    - Root composer.json requires 2amigos/yii2-usuario ~1.0 -> satisfiable by 2amigos/yii2-usuario[1.0.0, ..., 1.5.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

How do i get it to work with bootstrap 5? Any bootstrap5 support?

maxxer commented 2 years ago

There's ongoing work from different contributors about implementing other BS versions. The most up to date you can get is on #437.

BS5 assets for usuario are still missing, tough

srakl commented 2 years ago

Thank you for the info

Wilcodejongh commented 2 years ago

Hello all.

I have the same problem. I want to install a clean version of yii2 with y112-usuario. What is the best way to do this? Default i get a new version wit BS5? composer create-project --prefer-dist yiisoft/yii2-app-basic /var/home/www/ is there a easy way to do this. and do you know when there is a update for this problem. Thanks for helping. Wilco

TimoB2005 commented 2 years ago

Hello all.

I have the same problem. I want to install a clean version of yii2 with y112-usuario. What is the best way to do this? Default i get a new version wit BS5? composer create-project --prefer-dist yiisoft/yii2-app-basic /var/home/www/ is there a easy way to do this. and do you know when there is a update for this problem. Thanks for helping. Wilco

You need to change the Bootstrap Version to Bootstrap 4...

Change the assets/AppAsset.php to Bootstrap 4 and install Bootstrap 4 via Composer.

Now you need to Change a few views from bootstrap 5 to 4