yii2-extensions / template
Bootstrap 6 presentation layer for applications built from yii2-framework/starter.
Package info
github.com/yii2-framework/starter-bootstrap
Type:yii2-extension
pkg:composer/yii2-extensions/template
Requires
- php: >=8.3
- php-forge/foxy: ^0.4
- yii2-extensions/bootstrap6: ^0.1
- yii2-framework/starter: ^0.1@dev
- yiisoft/yii2: ^22.0@dev
- yiisoft/yii2-jquery: ^1.0@dev
Requires (Dev)
- infection/infection: ^0.35
- llm/skills: 1.15.0
- maglnet/composer-require-checker: ^4.1
- php-forge/coding-standard: ^0.3
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0.3
- phpunit/phpunit: ^12.5
- yii2-extensions/phpstan: ^0.6
- yii2-extensions/skill: ^0.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-06 16:31:09 UTC
README
Starter Bootstrap
Bootstrap 6 presentation layer for applications built from yii2-framework/starter
Ships only what Bootstrap changes: views, styles and scripts, wired without a line of configuration
How it works
This package is a php-forge/scaffold provider that layers on yii2-framework/starter. It
declares extends on the starter, so its files are applied after the ones of the base application and win the paths
both ship. Everything else, the actions, the forms, the migrations and the configuration, stays the base's.
- Files copied into the project: the views of every page under
resources/views, written with the Bootstrap 6 widgets and named as the starter names them; the asset bundles, widgets and two demonstration actions undersrc; the stylesheets and scripts underpublic/cssandpublic/js; the favicon; and two lines for.gitignore. - Glue that stays in
vendor/: a bootstrap class that Yii runs on every request. It sets the default parameters the views read, registers the@npmalias, the jQuery client scripts, the client script of the Bootstrap 6 form and the minified Bootstrap bundles. A setting the application already configures is left as it is. - npm packages:
php-forge/foxyinstalls Bootstrap 6 and the three self-hosted fonts next tovendor/.
Quick start
Start from an application created with yii2-framework/starter, then add the layer:
composer config allow-plugins.php-forge/foxy true composer require yii2-framework/starter-bootstrap:^0.1@dev vendor/bin/scaffold add yii2-framework/starter-bootstrap # shows what changes in composer.json vendor/bin/scaffold add yii2-framework/starter-bootstrap --yes # applies it and writes the files
Composer has to know that the Foxy plugin is allowed before it installs it, which is why the first command comes first.
Foxy needs npm on the path. The
installation guide has the details
and how to take the layer out again.
Documentation
- 📚 Installation Guide
AI assistance
AI agents: read the documentation index and fetch the Markdown version
of a page by appending index.md to its URL. The
AI agents guide covers skill installation, client setup and
verification.
- ðŸ§
yii2-frameworkskill: Yii 22.0 application conventions.
composer install synchronizes the skills of the trusted packages listed in skills.json into .agents/skills, with a
link at .claude/skills.
The hosted documentation covers Yii 22.0. If it does not match the installed revision or is unavailable, use the repository guides, the source PHPDoc and the changelog.