PHPackages                             zualex/parsertext - 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. zualex/parsertext

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

zualex/parsertext
=================

This is a PHP class to parse the text using the template

1.0.0(9y ago)119MITPHPPHP &gt;=5.4.0

Since Oct 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zualex/parsertext)[ Packagist](https://packagist.org/packages/zualex/parsertext)[ Docs](https://github.com/zualex/parsertext)[ RSS](/packages/zualex-parsertext/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ParserText
==========

[](#parsertext)

This is a PHP class to parse the text using the template.

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

[](#installation)

```
composer require zualex/parsertext

```

Exmaple
-------

[](#exmaple)

```
require_once __DIR__ . '/vendor/autoload.php';

use \ParserText\ParserText;

$parserSms = new ParserText('
    Никому не говорите пароль! Его спрашивают только мошенники.
    Пароль: {% password %}
    Перевод на счет {% receiver %}
    Вы потратите {% sum %}р.
');

print_r($parserSms->run('
    Никому не говорите пароль! Его спрашивают только мошенники.
    Пароль: 72946
    Перевод на счет 410011068150008
    Вы потратите 5025,13р.
'));
```

Result:

```
[
    'password' => '72946',
    'receiver' => '410011068150008',
    'sum' => '5025,13',
]

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3505d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a225ce04fd646b769499a370729ba6255d2a757ea66549ac4e504dde7ef1a62?d=identicon)[zualex](/maintainers/zualex)

---

Top Contributors

[![zualex](https://avatars.githubusercontent.com/u/6937109?v=4)](https://github.com/zualex "zualex (6 commits)")

---

Tags

phpparsertemplatetext

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zualex-parsertext/health.svg)

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

###  Alternatives

[alhimik1986/php-excel-templator

PHP Spreadsheet extension for generating excel files from template

350336.7k1](/packages/alhimik1986-php-excel-templator)

PHPackages © 2026

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