https://github.com/yiisoft/yii2-twig
Yii 2 Twig extension.
https://github.com/yiisoft/yii2-twig
hacktoberfest template-engine twig yii yii2
Last synced: about 1 year ago
JSON representation
Yii 2 Twig extension.
- Host: GitHub
- URL: https://github.com/yiisoft/yii2-twig
- Owner: yiisoft
- License: bsd-3-clause
- Created: 2013-12-10T04:25:24.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-13T21:31:50.000Z (over 1 year ago)
- Last Synced: 2025-04-24T14:22:59.905Z (about 1 year ago)
- Topics: hacktoberfest, template-engine, twig, yii, yii2
- Language: PHP
- Homepage: http://www.yiiframework.com
- Size: 9.65 MB
- Stars: 136
- Watchers: 29
- Forks: 60
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Twig Extension for Yii 2
This extension provides a `ViewRender` that would allow you to use [Twig](https://twig.symfony.com/) view template engine
with [Yii framework 2.0](https://www.yiiframework.com).
For license information check the [LICENSE](LICENSE.md)-file.
Documentation is at [docs/guide/README.md](docs/guide/README.md).
[](https://packagist.org/packages/yiisoft/yii2-twig)
[](https://packagist.org/packages/yiisoft/yii2-twig)
[](https://github.com/yiisoft/yii2-twig/actions)
Installation
------------
The preferred way to install this extension is through [composer](https://getcomposer.org/download/):
```
php composer.phar require --prefer-dist yiisoft/yii2-twig
```
Usage
-----
To use this extension, configure it as described in [documentation](docs/guide/installation.md#configuring-application).
Requirements
------------
* PHP 7.2 - 7.4