Skip to content

bmonteirog/loripsumwrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loripsum API Wrapper in PHP

Installation

composer require bmonteirog/loripsumwrapper

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

$loripsum = new Bmonteirog\Loripsum\Wrapper;

echo $loripsum->render(); // Render 4 paragraphs in default Mode

echo $loripsum->length('short')
              ->withLinks()
              ->render(2); // Render 2 short paragraphs with links

echo $loripsum->length('short')
              ->isPlaintext()
              ->render(2);     // Render 2 short plain text paragraphs

echo $loripsum->length('verylong')
              ->decorated()
              ->withLinks()
              ->withUnorderedLists()
              ->withNumberedLists()
              ->withDescriptionLists()
              ->withBlockquotes()
              ->withCode()
              ->withHeaders()
              ->isAllCaps()
              ->isPrude()
              ->render(10); // Render 10 verylong paragraphs with All options           

About

Loripsum API Client in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages