Search by

yii2-framework / starter-bootstrap

terabytesoftw

Bootstrap 6 presentation layer for applications built from yii2-framework/starter.

Package info

github.com/yii2-framework/starter-bootstrap

Documentation

Type:yii2-extension

pkg:composer/yii2-framework/starter-bootstrap

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main / 0.1.x-dev 2026-12-06 16:55 UTC

This package is auto-updated.

Last update: 2026-12-06 16:59:35 UTC


README

Yii Framework

Starter Bootstrap


PHPUnit Coverage Mutation Testing PHPStan

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 under src; the stylesheets and scripts under public/css and public/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 @npm alias, 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/foxy installs Bootstrap 6 and the three self-hosted fonts next to vendor/.

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

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.

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.

Package information

PHP Yii 22.0.x

Project status

PHPStan Level Max Quality

Security

OpenSSF Scorecard Zizmor

Built with AI

Built with Claude Code Built with Codex Reviewed by CodeRabbit

Our social networks

Follow on X Follow on Facebook Join our Subreddit Join on Telegram

License

License