PHPackages                             sp-templating-engine/sp-templating-engine - 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. [Framework](/categories/framework)
4. /
5. sp-templating-engine/sp-templating-engine

ActiveLibrary[Framework](/categories/framework)

sp-templating-engine/sp-templating-engine
=========================================

A versatile and lightweight PHP templating engine designed for seamless integration into web development projects.

v1.0.4(1mo ago)0631MITPHPPHP &gt;=5.3.0

Since Nov 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Gicehajunior/SPTemplateEngine)[ Packagist](https://packagist.org/packages/sp-templating-engine/sp-templating-engine)[ Docs](https://github.com/Gicehajunior/SPTemplateEngine.git)[ RSS](/packages/sp-templating-engine-sp-templating-engine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (1)

SPTemplateEngine
================

[](#sptemplateengine)

SPTemplateEngine is a lightweight PHP templating engine designed to simplify the separation of logic and presentation in web development projects. It allows you to assign variables, render templates, and even call functions within your templates.

Features
--------

[](#features)

- **Variable Assignment:** Easily assign variables to be used in your templates.
- **Template Rendering:** Replace placeholders in templates with assigned values.
- **Function Support:** Call functions within templates for dynamic content.
- **Namespace Assumption:** Functions are assumed to be in the same namespace as the engine class.
- **Automatic Function Parsing:** Functions are parsed and replaced with their results during rendering.

Installation
------------

[](#installation)

You can install SPTemplateEngine via composer:

```
composer require sp-templating-engine/sp-templating-engine
```

Usage
-----

[](#usage)

```
