2021-10-13 22:49:43 +02:00
|
|
|
# Smarty template engine
|
|
|
|
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
|
2017-05-11 10:50:42 +09:00
|
|
|
|
2021-10-13 12:15:17 +02:00
|
|
|

|
2019-07-04 11:09:46 +02:00
|
|
|
|
2017-07-30 00:39:41 +02:00
|
|
|
## Documentation
|
2021-10-13 22:49:43 +02:00
|
|
|
Read the [documentation](https://www.smarty.net/docs/en/) to find out how to use it.
|
2018-04-14 20:32:35 +02:00
|
|
|
|
2019-07-04 11:09:46 +02:00
|
|
|
## Requirements
|
2021-10-13 12:15:17 +02:00
|
|
|
Smarty can be run with PHP 7.1 to PHP 8.0.
|
2019-07-04 11:09:46 +02:00
|
|
|
|
2021-10-13 22:49:43 +02:00
|
|
|
## Installation
|
|
|
|
Smarty versions 3.1.11 or later can be installed with [Composer](https://getcomposer.org/).
|
2015-05-04 18:21:55 +02:00
|
|
|
|
2021-10-13 22:49:43 +02:00
|
|
|
To get the latest stable version of Smarty use:
|
|
|
|
```bash
|
|
|
|
composer require smarty/smarty
|
|
|
|
````
|
2015-05-04 18:21:55 +02:00
|
|
|
|
2021-10-13 22:49:43 +02:00
|
|
|
To get the latest, unreleased version, use:
|
|
|
|
```bash
|
|
|
|
composer require smarty/smarty:dev-master
|
|
|
|
````
|
2015-05-04 18:21:55 +02:00
|
|
|
|
2021-10-13 22:49:43 +02:00
|
|
|
To get the previous stable version of Smarty, Smarty 3, use:
|
|
|
|
```bash
|
|
|
|
composer require smarty/smarty:^3
|
|
|
|
````
|