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
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
This package is auto-updated.
Last update: 2022-02-01 12:21:08 UTC
README
Installation
- Add
"ocramius/ocra-lorem-module": "dev-master"to yourcomposer.json - Run
php composer.phar install - Enable the module in your
config/application.config.phpby addingOcraLoremModuletomodules
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