equal
deleted
inserted
replaced
|
1 #Smarty 3 template engine |
|
2 ##Distribution repository |
|
3 |
|
4 *Read the NEW_FEATURES file for recent extensions to Smarty 3.1 functionality* |
|
5 |
|
6 Smarty versions 3.1.11 or later are now on github and can be installed with Composer. |
|
7 |
|
8 |
|
9 The "smarty/smarty" package will start at libs/.... subfolder. |
|
10 |
|
11 To get the latest stable version of Smarty 3.1 use |
|
12 |
|
13 "require": { |
|
14 "smarty/smarty": "~3.1" |
|
15 } |
|
16 |
|
17 in your composer.json file. |
|
18 |
|
19 To get the trunk version use |
|
20 |
|
21 "require": { |
|
22 "smarty/smarty": "~3.1@dev" |
|
23 } |
|
24 |
|
25 For a specific version use something like |
|
26 |
|
27 "require": { |
|
28 "smarty/smarty": "3.1.19" |
|
29 } |
|
30 |
|
31 PHPUnit test can be installed by corresponding composer entries like |
|
32 |
|
33 "require": { |
|
34 "smarty/smarty-phpunit": "3.1.19" |
|
35 } |
|
36 |
|
37 Similar applies for the lexer/parser generator |
|
38 |
|
39 "require": { |
|
40 "smarty/smarty-lexer": "3.1.19" |
|
41 } |
|
42 |
|
43 Or you could use |
|
44 |
|
45 "require": { |
|
46 "smarty/smarty-dev": "3.1.19" |
|
47 } |
|
48 |
|
49 Which is a wrapper to install all 3 packages |
|
50 |
|
51 |
|
52 Composer can also be used for Smarty2 versions 2.6.24 to 2.6.28 |