ocramius/ocra-lorem-module

This package is abandoned and no longer maintained. No replacement package was suggested.

Module that provides Lorem Generator utilities for ZendFramework 2 Applications

0.1.1 2012-09-05 20:52 UTC

This package is auto-updated.

Last update: 2022-02-01 12:21:08 UTC


README

Installation

  1. Add "ocramius/ocra-lorem-module": "dev-master" to your composer.json
  2. Run php composer.phar install
  3. Enable the module in your config/application.config.php by adding OcraLoremModule to modules

Usage

In your view scripts, simply write following

<?php
echo $this->lorem();
// 10000 lorem!
echo $this->lorem(10000);

LoremPixel is also supported:

<?php
echo $this->loremPixel();

Will produce something like

<img src="http://lorempixel.com/640/480/" alt="Lorem Pixel"/>
<?php
echo $this->loremPixel(300, 200, false, 'sports', 'Dummy Text', 2);

Will produce something like

Dummy Text