Lorem ipsum dolor sit amet

1.0.0 2017-09-01 10:31 UTC

This package is auto-updated.

Last update: 2024-11-18 00:03:26 UTC


README

Latest Stable Version Total Downloads License

PHP Package - Random Text Generator

Use as filler text or just for fun. Works as a Composer Package or standalone.

For Composer usage:

<?php
require "vendor/autoload.php";

use Dickinsonjl\Lorum\Lorum;


$lorum = new Lorum();
$lorum->buildCache(); // build text Catalogue from LorumSeed file


echo $lorum->giveMeWord(1) . PHP_EOL; // specify word length as argument
echo $lorum->giveMeWord(2) . PHP_EOL;
echo $lorum->giveMeWord(3) . PHP_EOL;
echo $lorum->giveMeWord(4) . PHP_EOL;
echo $lorum->giveMeWord(5) . PHP_EOL;
echo $lorum->giveMePhrase() . PHP_EOL;
echo $lorum->giveMeSentence() . PHP_EOL;
echo $lorum->giveMeSentence(1) . PHP_EOL; // specify number of phrases for the sentence
echo $lorum->giveMeParagraph() . PHP_EOL;
echo $lorum->giveMeMultiParagraph(5) . PHP_EOL; // specify number of paragraphs

Project on GitHub.

Composer Package