Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Yii2 Bootstrap5 Laravel Package

yiisoft/yii2-bootstrap5

Bootstrap 5 integration for Yii 2 apps. Provides widgets, helpers, and asset bundles to render Bootstrap 5 components with Yii’s view and form APIs, enabling consistent styling and UI elements using Bootstrap 5 in Yii 2 projects.

View on GitHub
Deep Wiki
Context7

基本的な使用方法

Yii は bootstrap の基礎を PHP コードでラップすることをしていません。なぜなら、この場合の HTML コードがそれ自体として非常にシンプルだからです。 bootstrap の基礎を使用することに関する詳細は、bootstrap ドキュメント・ウェブ・サイト で見ることが出来ます。 それでも、Yii はあなたのページに bootstrap のアセットをインクルードするための便利な方法を提供しています。 [@app](https://github.com/app)/assets ディレクトリに配置されている AppAsset.php に一行を加えるだけで大丈夫です。

public $depends = [
    'yii\web\YiiAsset',
    'yii\bootstrap5\BootstrapAsset', // この行です
];

Yii のアセットマネージャによって bootstrap を使うと、必要に応じて、bootstrap のリソースを最小化したり、 あなた自身のリソースと結合したりすることが出来ます。

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource