magyarjeti / laravel-lipsum
Lorem ipsum generator for Laravel Framework
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 17 881
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 4
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.0
- illuminate/support: >=4.0
- magyarjeti/loripsum-client: v2.0
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!