magyarjeti/laravel-lipsum

There is no license information available for the latest version (v1.1) of this package.

Lorem ipsum generator for Laravel Framework

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.1 2015-02-09 13:54 UTC

This package is not auto-updated.

Last update: 2024-04-09 01:07:53 UTC


README

This service provider uses the loripsum.net API for text generation via the magyarjeti/loripsum-client library.

Installation

Manually

Add this to your composer.json:

{
    "require": {
        "magyarjeti/laravel-lipsum": "dev-master"
    }
}

Then run:

php composer.phar update

CLI only

php composer.phar require magyarjeti/laravel-lipsum dev-master

Setup

Append service provider to your provider in app/config/app.php:

'providers' => array(
    // ...
    'Magyarjeti\LaravelLipsum\LipsumServiceProvider',
)

Optionally register an alias at the same place:

'aliases' => array(
    // ...
    'Lipsum' => 'Magyarjeti\LaravelLipsum\LipsumFacade',
)

Usage

Generate HTML text:

Lipsum::html();

Generate five paragraph HTML text with headers, link and unordered list:

Lipsum::headers()->link()->ul()->html(5);

Generate three short plain text paragraphs:

Lipsum::short()->text(3);

More text formatting options

  • short, medium, long, verylong - The average length of a paragraph.
  • decorate - Add bold, italic and marked text.
  • link - Add links.
  • ul - Add unordered lists.
  • ol - Add numbered lists.
  • dl - Add description lists.
  • bq - Add blockquotes.
  • code - Add code samples.
  • headers - Add headers.
  • allcaps - Use ALL CAPS.
  • prude - Prude version.

Author

Magyar Jeti Zrt.

License

This package is licensed under the MIT License - see the LICENSE file for details!