PHPackages                             sugiphp/ste - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. sugiphp/ste

ActiveLibrary[Templating &amp; Views](/categories/templating)

sugiphp/ste
===========

Template Engine

1.1.0(9y ago)0278MITPHPPHP &gt;=5.5

Since Dec 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SugiPHP/STE)[ Packagist](https://packagist.org/packages/sugiphp/ste)[ RSS](/packages/sugiphp-ste/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

STE
===

[](#ste)

[![Build Status](https://camo.githubusercontent.com/ca62041b1b200bcf874d00826c5d82543f5d6495bb5855dea62e51eca8d4b4be/68747470733a2f2f7472617669732d63692e6f72672f537567695048502f5354452e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SugiPHP/STE)

STE stands for Sugi (or Simple) Template Engine. It is intended to be secure, lightweight and fast.

Unlike some of the famous template engines (like Smarty, Twig, etc.) the template code is not converted (compiled) to PHP code and then evaluated, but parsed on the fly. Variables and blocks are replaced with regular expressions (preg\_replace function). This approach has several benefits (and drawbacks). The STE code is light (currently only one file), it is fast (compared to PHP convert-ions), but most of all it is secure - you can give anyone to make a HTML template for your project and it is safe to use since no PHP code can be injected in a template files. And here comes the cons using this approach - all the logic should be done in the PHP code and then passed to the template engine. STE does not recognize even simplest if-then-else statements.

Usage
-----

[](#usage)

Template file: index.html

```
>

	{title}

		{navi.title}

```

PHP file:

```

```

The output will be something like this:

```
>

	My Site

		My Blog
		Online games

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~260 days

Total

3

Last Release

3640d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3

1.1.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/991c2430ace2ac70cb06507ae39e9e556e43bff5380e45ddd72c0f0294347794?d=identicon)[tzappa](/maintainers/tzappa)

---

Top Contributors

[![tzappa](https://avatars.githubusercontent.com/u/140298?v=4)](https://github.com/tzappa "tzappa (27 commits)")

---

Tags

templates

### Embed Badge

![Health badge](/badges/sugiphp-ste/health.svg)

```
[![Health](https://phpackages.com/badges/sugiphp-ste/health.svg)](https://phpackages.com/packages/sugiphp-ste)
```

###  Alternatives

[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[infyomlabs/adminlte-templates

AdminLTE templates for InfyOm Laravel Generator

2681.6M7](/packages/infyomlabs-adminlte-templates)[gamajo/template-loader

A class for your WordPress plugin, to allow loading template parts with fallback through the child theme &gt; parent theme &gt; plugin

29647.0k5](/packages/gamajo-template-loader)[foil/foil

PHP template engine for native PHP templates

170111.2k7](/packages/foil-foil)[san-kumar/laravel-crud

Laravel CRUD generator: Generate CRUD for any db table with the crud:generate command.

564.4k](/packages/san-kumar-laravel-crud)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
