]> git.mxchange.org Git - friendica.git/blob - vendor/smarty/smarty/README.md
Add Smarty to Composer
[friendica.git] / vendor / smarty / smarty / README.md
1 #Smarty 3 template engine
2 ##Distribution repository
3
4 > Smarty 3.1.28 introduces run time template inheritance
5
6 > Read the NEW_FEATURES and INHERITANCE_RELEASE_NOTES file for recent extensions to Smarty 3.1 functionality
7
8 Smarty versions 3.1.11 or later are now on github and can be installed with Composer.
9
10
11 The "smarty/smarty" package will start at libs/....   subfolder.
12
13 To get the latest stable version of Smarty 3.1 use
14
15 ```json
16 "require": {
17     "smarty/smarty": "~3.1"
18 }
19 ```
20
21 in your composer.json file.
22
23 To get the trunk version use
24
25 ```json
26 "require": {
27     "smarty/smarty": "~3.1@dev"
28 }
29 ```
30
31 For a specific version use something like
32
33 ```json
34 "require": {
35     "smarty/smarty": "3.1.19"
36 }
37 ```
38
39 PHPUnit test can be installed by corresponding composer entries like
40
41 ```json
42 "require": {
43     "smarty/smarty-phpunit": "3.1.19"
44 }
45 ```
46
47 Similar applies for the lexer/parser generator
48
49 ```json
50 "require": {
51     "smarty/smarty-lexer": "3.1.19"
52 }
53 ```
54
55 Or you could use
56
57 ```json
58 "require": {
59     "smarty/smarty-dev": "3.1.19"
60 }
61 ```
62
63 Which is a wrapper to install all 3 packages
64
65 Composer can also be used for Smarty2 versions 2.6.24 to 2.6.28