PHPackages                             liderman/php-text-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. liderman/php-text-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

liderman/php-text-generator
===========================

Fast SEO text generator on a mask

v1.0.0(7y ago)277.9k8MITPHPPHP ^7.1CI failing

Since Dec 11Pushed 7y ago2 watchersCompare

[ Source](https://github.com/liderman/php-text-generator)[ Packagist](https://packagist.org/packages/liderman/php-text-generator)[ RSS](/packages/liderman-php-text-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

php-text-generator
==================

[](#php-text-generator)

Fast SEO text generator on a mask.

Written in PHP. I do not use regular expressions and the fastest. I covered tests and simple! Supporting recursive text generation rules. It supports multiple encodings.

This package implements the functionality of a similar package for Go Lang – [text-generator](https://github.com/liderman/text-generator).

[![Build Status](https://camo.githubusercontent.com/f1d4dfbdda8953ae41feda514f5287f38912cb9f0f70f2f10e4b8d928cf9bf19/68747470733a2f2f7472617669732d63692e6f72672f6c696465726d616e2f7068702d746578742d67656e657261746f722e737667)](https://travis-ci.org/liderman/php-text-generator)[![Latest Stable Version](https://camo.githubusercontent.com/d495972b5548b7e7a57436fe826660fbd3dbe9ab5319fa64910c857b2970a66d/68747470733a2f2f706f7365722e707567782e6f72672f6c696465726d616e2f7068702d746578742d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/liderman/php-text-generator)[![Total Downloads](https://camo.githubusercontent.com/247885876b834e5343a1f69505fcfefcb574a8ffe63416f61756d786ce24c024/68747470733a2f2f706f7365722e707567782e6f72672f6c696465726d616e2f7068702d746578742d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/liderman/php-text-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/fcd3988b8b6abed0a7430bea64a6ade665d4351df22eb2dd985ade3149d2a8c5/68747470733a2f2f706f7365722e707567782e6f72672f6c696465726d616e2f7068702d746578742d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/liderman/php-text-generator)[![License](https://camo.githubusercontent.com/e7ab9ac083e317fe8ed94d691be336dba2b363de5bfd9a51a8d21e7720bd622a/68747470733a2f2f706f7365722e707567782e6f72672f6c696465726d616e2f7068702d746578742d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/liderman/php-text-generator)

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

[](#installation)

```
composer require liderman/php-text-generator

```

Usage
-----

[](#usage)

An example of a simple template text generation:

```
$textGen = new TextGenerator();
echo $textGen->generate("Good {morning|day}!");
// Displays: Good morning!
// or
// Good day!
```

An example of a complex generation template text:

```
$textGen = new TextGenerator();
echo $textGen->generate("{Good {morning|evening|day}|Goodnight|Hello}, {friend|brother}! {How are you|What's new with you}?");
// Displays: Good morning, friend! How are you?
// or
// Good day, brother! What's new with you?
// or
// Hello, friend! How are you?
// ...
```

Features
--------

[](#features)

- It supports multiple encodings
- Supporting recursive text generation rules
- Fast! Does not use regular expressions
- Easy wrapping thanks to the integrated interface
- Covered tests
- Written by PSR standards and 100% covered with documentation (PHP-Doc)
- Without external dependencies
- The code is checked by the static analyzer PhpStan lvl 7

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

2889d ago

Major Versions

v0.1.3 → v1.0.02018-06-20

PHP version history (2 changes)v0.1.0PHP &gt;=5.5.9

v1.0.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8589259?v=4)[Konstantin Osipov](/maintainers/liderman)[@liderman](https://github.com/liderman)

---

Top Contributors

[![liderman](https://avatars.githubusercontent.com/u/8589259?v=4)](https://github.com/liderman "liderman (8 commits)")

---

Tags

phpseoseo-optimizationtext-generationtext-generatortextpatterngeneratortextseomask

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/liderman-php-text-generator/health.svg)

```
[![Health](https://phpackages.com/badges/liderman-php-text-generator/health.svg)](https://phpackages.com/packages/liderman-php-text-generator)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k27.6M92](/packages/simplesoftwareio-simple-qrcode)[kphoen/sitemap-generator

Provides a way to create/generate a sitemap using Propel, Doctrine, etc.

1687.8k4](/packages/kphoen-sitemap-generator)

PHPackages © 2026

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