BSD Ports

www/smarty4 4.5.5 DragonFly

PHP compiling template engine

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
LGPL3+
Categories
www
Package size
142.9 KiB, 1080.5 KiB installed

Description

Smarty is a template engine for PHP. Many other template engines for PHP provide basic variable substitution and dynamic block functionality. Smarty takes a step further to be a "smart" template engine, adding features such as configuration files, template functions, and variable modifiers, and making all of this functionality as easy as possible to use for both programmers and template designers. Smarty also converts the templates into PHP scripts, eliminating the need to parse the templates on every invocation. This makes Smarty extremely scalable and managable for large application needs.

In the other systems

The newest version among them is 4.5.7, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/smarty44.5.5 behind since 2026-07-08none known-[email protected]-
FreeBSDwww/smarty44.5.7 newestnone known-[email protected]2026-07-08
HardenedBSDwww/smarty44.5.7 newestno data-[email protected]-
GhostBSDwww/smarty44.5.7 newestno data-[email protected]-

Install

Binary package:

pkg install smarty4-php81

From DPorts:

cd /usr/dports/www/smarty4 && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
smarty4-php82-4.5.5, smarty4-php83-4.5.5, smarty4-php84-4.5.5

Message after installing

You need to adjust php's include_path to contain /usr/local/share/smarty-php81!
For example, insert
	include_path = ".:/usr/local/share/smarty-php81"
into /usr/local/etc/php.ini.