https://github.com/yii-extension/simple-view-tailwind
https://github.com/yii-extension/simple-view-tailwind
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yii-extension/simple-view-tailwind
- Owner: yii-extension
- License: bsd-3-clause
- Created: 2021-05-12T16:08:13.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T20:57:51.000Z (about 2 years ago)
- Last Synced: 2024-04-25T03:44:19.508Z (about 1 year ago)
- Language: PHP
- Size: 106 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Simple view tailwind web application for yii.
[](https://packagist.org/packages/yii-extension/simple-view-tailwind)
[](https://github.com/yii-extension/simple-view-tailwind/actions?query=workflow%3Abuild)
[](https://codecov.io/gh/yii-extension/simple-view-tailwind)
[](https://github.com/yii-extension/simple-view-tailwind/actions?query=workflow%3A%22static+analysis%22)
[](https://shepherd.dev/github/yii-extension/simple-view-tailwind)## Installation
```shell
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
```shell
composer require yiisoft/translator-extractor --prefer-dist
```The root directory of simple-app: `config/packages/yiisoft-translator-extractor/console.php`:
```php
[
'__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:
```shell
./yii translator/extract --languages=es --only=**/vendor/yii-extension/simple-view-tailwind/storage/**
```### Unit testing
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
```shell
./vendor/bin/phpunit
```## Static analysis
The code is statically analyzed with [Psalm](https://psalm.dev/docs). To run static analysis:
```shell
./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`](./LICENSE.md) for more information.Maintained by [Yii Extension](https://github.com/yii-extension).
## Support the project
[](https://opencollective.com/yiisoft)
## Powered by Yii Framework
[](https://www.yiiframework.com/)