2017 © Pedro Peláez
 

library phplipsum

LipsumGenerator can be used to create garbeled, non repetitive 'chapters' using the standard Lorem Ipsum text as a basis. It'll try to generate reasonable well looking paragraphs in the chapters.

image

grandt/phplipsum

LipsumGenerator can be used to create garbeled, non repetitive 'chapters' using the standard Lorem Ipsum text as a basis. It'll try to generate reasonable well looking paragraphs in the chapters.

  • Sunday, November 1, 2015
  • by Grandt
  • Repository
  • 1 Watchers
  • 1 Stars
  • 14 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHPLipsumGenerator

Create garbled, non repetitive "chapters" using the standard Lorem Ipsum text as a basis., (*1)

License

LGPL 2.1, (*2)

Guide

The intention is to help debug or test text input, by being quickly able to generate vast amounts of non predictable text., (*3)

The user can set the source text to something different than the original Latin Lorem text, if desired., (*4)

To use the class, simply call generate with these parameters, all of which are optional:, (*5)

  • $minWordCount (integer) Default: 200.
  • $maxWordCount (integer) Default: 2000.
  • $useMultipleParagraphs (boolean) Generate a text with multiple paragraphs. Default: TRUE.
  • $startWithLorem (boolean) Will start each chapter with the text "Lorem ipsum dolor sit amet, consectetur adipisicing elit.", the length of which is subtracted from the $minWordCount. Used to help identify the place holder text for what it really is. Default: TRUE.
  • $indent (String) Indentation of each new paragraph in the generated text. Default: " " (two spaces).
  • $eol (String) End of line sequence. Default: The Windows new line sequence ("\r\n").

generateHTML is a convenience method, identical to generate, but where $indent="<p>" and $eol="</p>\r\n"., (*6)

The Versions

01/11 2015

dev-master

9999999-dev https://github.com/Grandt/PHPLipsumGenerator

LipsumGenerator can be used to create garbeled, non repetitive 'chapters' using the standard Lorem Ipsum text as a basis. It'll try to generate reasonable well looking paragraphs in the chapters.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0

 

test lorem ipsum

01/11 2015

1.2.1

1.2.1.0 https://github.com/Grandt/PHPLipsumGenerator

LipsumGenerator can be used to create garbeled, non repetitive 'chapters' using the standard Lorem Ipsum text as a basis. It'll try to generate reasonable well looking paragraphs in the chapters.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0

 

test lorem ipsum