Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
# Smarty 3 template engine
2
[smarty.net](https://www.smarty.net/) 
3
 
4
[![Build Status](https://travis-ci.org/smarty-php/smarty.svg?branch=master)](https://travis-ci.org/smarty-php/smarty)
5
 
6
## Documentation
7
 
8
For documentation see 
9
[www.smarty.net/docs/en/](https://www.smarty.net/docs/en/) 
10
 
11
## Requirements
12
 
13
Smarty can be run with PHP 5.2 to PHP 7.4.
14
 
15
## Distribution repository
16
 
17
> Smarty 3.1.28 introduces run time template inheritance
18
 
19
> Read the NEW_FEATURES and INHERITANCE_RELEASE_NOTES file for recent extensions to Smarty 3.1 functionality
20
 
21
Smarty versions 3.1.11 or later are now on github and can be installed with Composer.
22
 
23
 
24
The "smarty/smarty" package will start at libs/....   subfolder.
25
 
26
To get the latest stable version of Smarty 3.1 use:
27
 
28
```json
29
"require": {
30
    "smarty/smarty": "~3.1"
31
}
32
```
33
 
34
in your composer.json file.
35
 
36
To get the trunk version use:
37
 
38
```json
39
"require": {
40
    "smarty/smarty": "~3.1@dev"
41
}
42
```
43
 
44
For a specific version use something like:
45
 
46
```json
47
"require": {
48
    "smarty/smarty": "3.1.19"
49
}
50
```
51
 
52
PHPUnit test can be installed by corresponding composer entries like:
53
 
54
```json
55
"require": {
56
    "smarty/smarty-phpunit": "3.1.19"
57
}
58
```
59
 
60
Similar applies for the lexer/parser generator.
61
 
62
```json
63
"require": {
64
    "smarty/smarty-lexer": "3.1.19"
65
}
66
```
67
 
68
Or you could use:
69
 
70
```json
71
"require": {
72
    "smarty/smarty-dev": "3.1.19"
73
}
74
```
75
 
76
Which is a wrapper to install all 3 packages.
77
 
78
Composer can also be used for Smarty2 versions 2.6.24 to 2.6.30.