Skip to content

Commit

Permalink
Initial commit. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Nov 11, 2023
1 parent b7c5b46 commit 75a7eab
Show file tree
Hide file tree
Showing 171 changed files with 11,905 additions and 50 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center">
<a href="https://github.com/yii2-extensions/template" target="_blank">
<a href="https://github.com/yii2-extensions/bootstrap5" target="_blank">
<img src="https://www.yiiframework.com/image/yii_logo_light.svg" height="100px;">
</a>
<h1 align="center">Yii2-Template.</h1>
<h1 align="center">Twitter Bootstrap5.</h1>
<br>
</p>

Expand All @@ -13,21 +13,21 @@
<a href="https://github.com/yiisoft/yii2/tree/2.2" target="_blank">
<img src="https://img.shields.io/badge/Yii2%20version-2.2-blue" alt="yii2-version">
</a>
<a href="https://github.com/yii2-extensions/template/actions/workflows/build.yml" target="_blank">
<img src="https://github.com/yii2-extensions/template/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
<a href="https://github.com/yii2-extensions/bootstrap5/actions/workflows/build.yml" target="_blank">
<img src="https://github.com/yii2-extensions/bootstrap5/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
</a>
<a href="https://codecov.io/gh/yii2-extensions/template" target="_blank">
<img src="https://codecov.io/gh/yii2-extensions/template/branch/main/graph/badge.svg?token=MF0XUGVLYC" alt="Codecov">
<a href="https://codecov.io/gh/yii2-extensions/bootstrap5" target="_blank">
<img src="https://codecov.io/gh/yii2-extensions/bootstrap5/branch/main/graph/badge.svg?token=MF0XUGVLYC" alt="Codecov">
</a>
<a href="https://github.com/yii2-extensions/template/actions/workflows/static.yml" target="_blank">
<a href="https://github.com/yii2-extensions/bootstrap5/actions/workflows/static.yml" target="_blank">
<img src="https://github.com/yii2-extensions/gii/actions/workflows/static.yml/badge.svg" alt="PHPStan">
</a>
<a href="https://github.com/yii2-extensions/template/actions/workflows/static.yml" target="_blank">
<a href="https://github.com/yii2-extensions/bootstrap5/actions/workflows/static.yml" target="_blank">
<img src="https://img.shields.io/badge/PHPStan%20level-2-blue" alt="PHPStan level">
</a>
<a href="https://github.styleci.io/repos/717251172?branch=main" target="_blank">
<img src="https://github.styleci.io/repos/717251172/shield?branch=main" alt="Code style">
</a>
<a href="https://github.styleci.io/repos/698621511?branch=main" target="_blank">
<img src="https://github.styleci.io/repos/698621511/shield?branch=main" alt="Code style">
</a>
</p>

## Requirements
Expand Down
20 changes: 14 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"name": "yii2/template",
"type": "library",
"description": "_____",
"name": "yii2-extensions/bootstrap5",
"type": "yii2-extension",
"description": "The Twitter Bootstrap5 extension for the Yii framework.",
"keywords": [
"_____"
"yii2-extensions",
"bootstrap5"
],
"license": "mit",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"npm-asset/bootstrap": "^5.3",
"yiisoft/yii2": "^2.2"
},
"require-dev": {
Expand All @@ -19,17 +21,23 @@
},
"autoload": {
"psr-4": {
"yii\\template\\": "src"
"yii\\bootstrap5\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"yii\\template\\tests\\": "tests"
"yiiunit\\extensions\\bootstrap5\\": "tests"
}
},
"extra": {
"branch-alias": {
"dev-main": "1.0.x-dev"
},
"config-plugin-options": {
"source-directory": "config"
},
"config-plugin": {
"yii2-bootstrap5": "extension.php"
}
},
"config": {
Expand Down
11 changes: 11 additions & 0 deletions config/extension.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use yii\bootstrap5\i18n\TranslationBootstrap;

return [
'bootstrap' => [
TranslationBootstrap::class,
],
];
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
colors="true"
executionOrder="depends,defects"
Expand All @@ -11,7 +11,7 @@
stopOnFailure="false"
>
<testsuites>
<testsuite name="Template">
<testsuite name="Yii2-Bootstrap5">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
Loading

0 comments on commit 75a7eab

Please sign in to comment.