From 114e18ca0c963e02d270a55cb5d1f080c8e5dc61 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Thu, 28 Mar 2024 17:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 600e5fa..b62bb08 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -

Twitter Bootstrap 5 Extension for Yii 2

+

Twitter Bootstrap 5 Extension for Yii 2 (Mod)


@@ -14,29 +14,42 @@ For license information check the [LICENSE](LICENSE.md)-file. Documentation is at [docs/guide/README.md](docs/guide/README.md). -[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-bootstrap5/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap5) -[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-bootstrap5/downloads.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap5) -[![Build Status](https://github.com/yiisoft/yii2-bootstrap5/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-bootstrap5/actions) +修改说明 +------------ +由于原yiisoft/yii2-bootstrap5需要bower-asset/bootstrap, -Installation +而[asset-packagist](https://asset-packagist.org/package/bower-asset/bootstrap)上意外缺失了bower-asset/bootstrap最新版本(5.3.x), + +现在手动在composer.json添加bower-asset/bootstrap 5.3.x版本会出现错误, + +我的项目需要使用bootstrap 5.3新增加的夜间模式, + +所以我将原包修改了一下,将依赖的bower-asset/bootstrap改为npm-asset/bootstrap, + +安装 ------------ The preferred way to install this extension is through [composer](https://getcomposer.org/download/). -Either run +add ``` -php composer.phar require --prefer-dist yiisoft/yii2-bootstrap5 + { + "type": "vcs", + "url": "https://git.chenx221.cyou/chenx221/yii2-bootstrap5" + } ``` -or add +to the repositories section of your `composer.json` file, + +and add ``` -"yiisoft/yii2-bootstrap5": "*" + "chenx221/yii2-bootstrap5": "dev-master" ``` -to the require section of your `composer.json` file. +to the require section of your `composer.json` file, Translations ----