2017 © Pedro Peláez
 

library php-text-generator

Fast SEO text generator on a mask

image

liderman/php-text-generator

Fast SEO text generator on a mask

  • Thursday, June 21, 2018
  • by liderman
  • Repository
  • 2 Watchers
  • 4 Stars
  • 260 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

php-text-generator

Fast SEO text generator on a mask., (*1)

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., (*2)

This package implements the functionality of a similar package for Go Lang – text-generator., (*3)

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*4)

Installation

composer require liderman/php-text-generator

Usage

An example of a simple template text generation:, (*5)

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

An example of a complex generation template text:, (*6)

$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

  • 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

  • PHP >= 7.1

The Versions

21/06 2018

dev-master

9999999-dev

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Konstantin Osipov

generator text mask seo

21/06 2018

v1.0.0

1.0.0.0

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Konstantin Osipov

generator text mask seo

21/06 2018

dev-php5

dev-php5

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Konstantin Osipov

generator text mask seo

21/06 2018

v0.1.3

0.1.3.0

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Konstantin Osipov

generator text mask seo

14/12 2016

v0.1.2

0.1.2.0

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Konstantin Osipov

generator text mask seo

11/12 2016

v0.1.1

0.1.1.0

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Konstantin Osipov

generator text mask seo

11/12 2016

v0.1.0

0.1.0.0

Fast SEO text generator on a mask

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Konstantin Osipov

generator text mask seo