Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
/ OcraLoremModule Public archive

Module that provides Lorem Generator utilities for ZendFramework 2 Applications

Notifications You must be signed in to change notification settings

Ocramius/OcraLoremModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OcraLoremModule - Lorem Ipsum Generator for ZF2

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

About

Module that provides Lorem Generator utilities for ZendFramework 2 Applications

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages