yii-extension / simple-view-tailwind
Simple view tailwind for web application yii3.
dev-master / 1.0.x-dev
2022-01-18 17:07 UTC
Requires
- php: >=8.0
- yii-extension/alert-flash-tailwind: ^1.0
- yii-extension/fontawesome: ^1.0
- yii-extension/tailwind: ^1.0
- yiisoft/assets: ^2.0
- yiisoft/form: dev-enhacements-factory as 1.0
- yiisoft/translator-formatter-intl: ^1.0
- yiisoft/translator-message-php: ^1.0
- yiisoft/user: ^1.0
- yiisoft/yii-event: ^1.0
- yiisoft/yii-view: ^4.0
Requires (Dev)
- codeception/c3: ^2.6
- codeception/codeception: ^4.1
- codeception/module-asserts: ^2.0
- codeception/module-phpbrowser: ^2.0
- vimeo/psalm: ^4.7
- yii-extension/simple-app: ^1.0
This package is auto-updated.
Last update: 2024-11-16 00:07:39 UTC
README
Simple view tailwind web application for yii.
Installation
composer require yii-extension/simple-view-tailwind
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
:
<?php declare(strict_types=1); 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( $aliases->get('@simple-view-tailwind/translations') ), 'messageWriter' => static fn (Aliases $aliases) => new \Yiisoft\Translator\Message\Php\MessageSource( $aliases->get('@simple-view-tailwind/translations') ), ], ], ];
The root directory of simple-app:
./yii translator/extract --languages=es --only=**/vendor/yii-extension/simple-view-tailwind/storage/**
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
License
The yii-extension/simple-view-tailwind
is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Extension.