mkrawczyk / mpts
Multi Platform Template System is a template engine for PHP and other platforms.
Installs: 1 465
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mkrawczyk/mpts
Requires
- php: >=8.0
- ext-dom: *
- mkrawczyk/funquery: ^v1.9.2
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5.20
- dev-master
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
This package is auto-updated.
Last update: 2025-12-08 15:52:36 UTC
README
Official website: https://greencodestudio.github.io/mpts/
Usage in code
PHP
# Install the MPTS library using Composer
composer require mkrawczyk/mpts
// Import necessary classes from the MPTS library use MKrawczyk\Mpts\Environment; use MKrawczyk\Mpts\Parser\XMLParser; // Parse the MPTS template file $template = XMLParser::Parse(file_get_contents(__DIR__ . '/file.mpts')); // Create a new environment and set variables $env = new Environment(); $env->variables = ['foo' => 'bar']; // Execute the template with the environment and output the result echo $template->executeToString($env);