ocramius / ocra-lorem-module
Module that provides Lorem Generator utilities for ZendFramework 2 Applications
Installs: 2 677
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 2
Open Issues: 0
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.php
by addingOcraLoremModule
tomodules
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