Skip to content

Commit 46bc497

Browse files
authored
Merge pull request #161 from t0mmy742/3.x
Support Twig 3
2 parents 3285b8c + b7db6f1 commit 46bc497

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Coverage Status](https://coveralls.io/repos/github/slimphp/Twig-View/badge.svg?branch=3.x)](https://coveralls.io/github/slimphp/Twig-View?branch=3.x)
55
[![License](https://poser.pugx.org/slim/twig-view/license)](https://packagist.org/packages/slim/twig-view)
66

7-
This is a Slim Framework view helper built on top of the Twig templating component. You can use this component to create and render templates in your Slim Framework application. It works with Twig 2 and PHP 7.1 or newer.
7+
This is a Slim Framework view helper built on top of the Twig templating component. You can use this component to create and render templates in your Slim Framework application. It works with Twig (2 and 3) and PHP 7.1 or newer.
88

99
## Install
1010

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "slim/twig-view",
33
"type": "library",
4-
"description": "Slim Framework 4 view helper built on top of the Twig 2 templating component",
4+
"description": "Slim Framework 4 view helper built on top of the Twig (2 and 3) templating component",
55
"keywords": ["slim","framework","view","template","twig"],
66
"homepage": "https://www.slimframework.com",
77
"license": "MIT",
@@ -21,7 +21,7 @@
2121
"php": "^7.1",
2222
"psr/http-message": "^1.0",
2323
"slim/slim": "^4.0",
24-
"twig/twig": "^2.8"
24+
"twig/twig": "^2.8|^3.0"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^7.5",

0 commit comments

Comments
 (0)