Simple view bootstrap5 for web application yii.

dev-master / 1.0.x-dev 2021-11-27 11:59 UTC

This package is auto-updated.

Last update: 2021-11-27 11:59:37 UTC



Simple view bootstrap5 web application for yii.

Total Downloads Build Status codecov static analysis type-coverage

Directory structure

  config/             application directory configurations
      common          contains common config local classes
  src/                application directory
      Action          contains action classes
      Asset           contains asset classes
      Handler         contains handlers classes
      ViewInjection   contains view injection classes


composer create-project --prefer-dist --stability dev yii-extension/simple-app <your project>
cd <your project>
composer require yii-extension/simple-view-bootstrap5:^1.0

Using translations

By default the package includes the translation into spanish and russian.

The translation is in the /storage/translations directory.

Translation extractor

composer require yiisoft/translator-extractor --prefer-dist

The root directory of simple-app: config/packages/yiisoft-translator-extractor/console.php:



use Yiisoft\Aliases\Aliases;
use Yiisoft\Translator\Extractor\Extractor;

/** @var array $params */

return [
    Extractor::class => [
        '__construct()' => [
            'messageReader' => static fn (Aliases $aliases) => new \Yiisoft\Translator\Message\Php\MessageSource(
            'messageWriter' => static fn (Aliases $aliases) => new \Yiisoft\Translator\Message\Php\MessageSource(

The root directory of simple-app:

./yii translator/extract --languages=es --only=**/vendor/yii-extension/simple-view-bootstrap5/storage/**

Codeception testing

The package is tested with Codeception. To run tests:

php -S -t public > yii.log 2>&1 &
vendor/bin/codecept run

Static analysis

The code is statically analyzed with Psalm. To run static analysis:



The yii-extension/simple-view-bootstrap5 for Yii Packages is free software.

It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Extension.

Support the project

Open Collective

Powered by Yii Framework

Official website