0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Docker環境のPHPでBootstrapをインストールする手順

Last updated at Posted at 2023-02-16

Warpで直接コマンドでインストールする

Bootstrap本家サイトでインストールするコマンドをコピーしてDockerコードの後にコマンドを追加して実施する。

https://getbootstrap.jp/docs/5.0/getting-started/download/
※URLはサイトの構成見直しで変更される可能性がある。要は「ダウンロード」のリンク先。

色んな環境に合わせたインストール方法が紹介されている。

「Composer」の欄を見つける。
「Composer を使って Bootstrap の Sass と JavaScript をインストールできます。」とあり、コマンドが掲載されている。バージョンがアップデートされればバージョン名が変わっていく。
ちなみに今日は以下。
注意点!!:以下のコマンドをそのまま使ってはだめ。

composer require twbs/bootstrap:5.0.2

Dockerなので冒頭の記述を行った後で上記のコードを追記してコマンド実施する。

docker-compose exec app composer require twbs/bootstrap:5.0.2
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?