PHPackages                             leowebguy/lorem-ipsum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. leowebguy/lorem-ipsum

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

leowebguy/lorem-ipsum
=====================

Lorem Ipsum Generator for Craft

2.0.0(1y ago)0879↓100%[1 issues](https://github.com/leowebguy/lorem-ipsum/issues)proprietaryPHPPHP ^8.2

Since Apr 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/leowebguy/lorem-ipsum)[ Packagist](https://packagist.org/packages/leowebguy/lorem-ipsum)[ RSS](/packages/leowebguy-lorem-ipsum/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Lorem Ipsum Generator for Craft
-------------------------------

[](#lorem-ipsum-generator-for-craft)

Extending [PHP Lorem Ipsum](https://github.com/joshtronic/php-loremipsum) by @joshtronic

### Installation

[](#installation)

Open your terminal and go to your Craft project:

```
composer require leowebguy/lorem-ipsum -w && php craft plugin/install lorem-ipsum
```

### Usage

[](#usage)

The plugin exposes these methods to Twig:

#### Words

[](#words)

```
{{ craft.lorem.w(1) }} >> 1 word
{{ craft.lorem.w(5) }} >> 5 words
```

#### Sentences

[](#sentences)

```
{{ craft.lorem.s(1) }} >> 1 sentence
{{ craft.lorem.s(2) }} >> 2 sentences
```

#### Paragraphs

[](#paragraphs)

```
{{ craft.lorem.p(1) }} >> 1 paragraph
{{ craft.lorem.p(2) }} >> 2 paragraphs
```

#### Need it wrapped ? Just use Twig `{{ tag }}`

[](#need-it-wrapped--just-use-twig--tag-)

```
{{ tag('p', {
  text: craft.lorem.w(10),
  class: 'text-center' })
}}

output >> lorem ipsum...
```

#### With twig utils

[](#with-twig-utils)

```
craft.lorem.w(10)|title
