2021-07-09 17:53:24 +08:00
|
|
|
安装
|
|
|
|
============
|
|
|
|
|
|
|
|
## 获取 Composer 包
|
|
|
|
|
2022-12-27 15:09:38 +08:00
|
|
|
安装此扩展的首选方式是通过 [composer](https://getcomposer.org/download/).
|
2021-07-09 17:53:24 +08:00
|
|
|
|
|
|
|
直接运行
|
|
|
|
|
|
|
|
```
|
2021-08-03 16:22:50 +08:00
|
|
|
php composer.phar require --prefer-dist yiisoft/yii2-bootstrap5
|
2021-07-09 17:53:24 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
或者在项目目录的 `composer.json` 文件中添加如下代码
|
|
|
|
|
|
|
|
```
|
|
|
|
"yiisoft/yii2-bootstrap": "~1.0.0"
|
|
|
|
```
|