2017 © Pedro Peláez
 

library php-lipsum

CLI and PHP class for generating dummy text using www.lipsum.com

image

rpalladino/php-lipsum

CLI and PHP class for generating dummy text using www.lipsum.com

  • Monday, May 11, 2015
  • by rpalladino
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-lipsum

Codeship Status for rpalladino/php-lipsum, (*1)

CLI and PHP class for generating lorem ipsum text using www.lipsum.com, (*2)

Install

Via Composer, (*3)

``` bash $ composer require rpalladino/php-lipsum, (*4)


## Usage ### CLI ```bash $ ./vendor/bin/lipsum

Options

Usage:
 lipsum [-w|--what="..."] [-a|--amount="..."] [-s|--start-with-lipsum]

Options:
 --what (-w)              The kind of text to generate: paras, words, bytes, lists (default: "paras")
 --amount (-a)            The amount of text to generate (default: 5)
 --start-with-lipsum (-s) Start generated text with "Lorem ipsum dolor sit amet."

Examples

# get 1 paragraph of text
$ ./vendor/bin/lipsum -a 1

# get 25 words of text beginning with "lorem ipsum"
$ ./vendor/bin/lipsum -w words -a 25 -s

# get 3 list items
$ ./vendor/bin/lipsum -w lists -a 3

PHP Class

``` php require "vendor/autoload.php";, (*5)

$lipsum = new Rpalladino\Lipsum\Lipsum();, (*6)

// get 1 paragraph of text $lipsum->getParagraphs(1);, (*7)

// get 25 words of text beginning with "lorem ipsum" $lipsum->getWords(25, true);, (*8)

// get 3 list items $lipsum->getLists(3);, (*9)

```, (*10)

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

11/05 2015

dev-master

9999999-dev

CLI and PHP class for generating dummy text using www.lipsum.com

  Sources   Download

MIT

The Requires

 

The Development Requires

11/05 2015

v1.0

1.0.0.0

CLI and PHP class for generating dummy text using www.lipsum.com

  Sources   Download

MIT

The Requires

 

The Development Requires