PHP code example of bmonteirog / loripsumwrapper

1. Go to this page and download the library: Download bmonteirog/loripsumwrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bmonteirog / loripsumwrapper example snippets




psum = 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