PHPackages                             mkrawczyk/mpts - 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. mkrawczyk/mpts

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

mkrawczyk/mpts
==============

Multi Platform Template System is a template engine for PHP and other platforms.

v1.5.10(6mo ago)21.6kMITPHPPHP &gt;=8.0CI passing

Since Apr 21Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/GreenCodeStudio/mpts-php)[ Packagist](https://packagist.org/packages/mkrawczyk/mpts)[ RSS](/packages/mkrawczyk-mpts/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (43)Used By (0)

Multi Platform Template System for PHP
======================================

[](#multi-platform-template-system-for-php)

Official website:

Usage in code
-------------

[](#usage-in-code)

### PHP

[](#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);
```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance69

Regular maintenance activity

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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 ~33 days

Recently: every ~9 days

Total

42

Last Release

180d ago

Major Versions

v0.1.17 → v1.1.02023-04-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/d22c6cf11e8aa56c21710b4dc40cfe951e4fbe8f90d435bdeb1440ab39b186e3?d=identicon)[matrix0123456789](/maintainers/matrix0123456789)

---

Top Contributors

[![matrix0123456789](https://avatars.githubusercontent.com/u/4982159?v=4)](https://github.com/matrix0123456789 "matrix0123456789 (12 commits)")

---

Tags

phpxmlhtmltemplatingtemplate enginempts

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mkrawczyk-mpts/health.svg)

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

###  Alternatives

[goetas/twital

PHP templating engine that combines Twig and PHPTal power points

12813.1k1](/packages/goetas-twital)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.5k3](/packages/talesoft-tale-pug)[goetas/twital-bundle

Twital templating engine Symfony Bundle

206.8k](/packages/goetas-twital-bundle)[figdice/figdice

Template Engine, XML-centric and attribute-driven

212.4k1](/packages/figdice-figdice)

PHPackages © 2026

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