Download the PHP package velliz/pte without Composer
On this page you can find all versions of the php package velliz/pte. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package pte
PTE - Puko Templating Engine
A lightweight, high-performance PHP templating engine designed for standalone use. PTE traverses HTML DOM trees into PHP arrays (lexer) and combines them with data specifications (parser) to render dynamic pages.
Features
- Fast Rendering - ~0.004s without cache, ~0.002s with caching
- Master Pages - Layout inheritance with
{CONTENT}placeholder - Looping - Iterate over arrays in templates
- Custom Functions - Create reusable parsing rules via
CustomRenderinterface - Partial Views - Include external template segments
- Asset Management - Automatic CSS/JS aggregation
- Multiple Output Formats - HTML, JSON, XML support
Requirements
- PHP 5.6+
- Composer
- PHP Extensions:
ext-json,ext-xmlrpc
Installation
Quick Start
Template Syntax
Value Tags
Loops
Master Pages
Custom Functions
Part Objects (Reusable Components)
CSS/JS Management
Template Segments
Output Formats
Configuration
| Parameter | Type | Description |
|---|---|---|
$cacheDriver |
PteCache\|bool |
Cache driver instance or false to disable |
$UseMaster |
bool |
Enable master page support |
$UseBody |
bool |
Enable body template parsing |
Example Project Structure
Performance
Benchmarks (rendering sample page):
- Without cache: ~0.004 seconds
- With cache: ~0.002 seconds
License
MIT License - Copyright 2017 Didit Velliz
All versions of pte with dependencies
PHP Build Version
Package Version
No informations.
The package velliz/pte contains the following files
Loading the files please wait ...