rpalladino/php-lipsum 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rpalladino/php-lipsum

Composer 安装命令:

composer require rpalladino/php-lipsum

包简介

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

README 文档

README

Codeship Status for rpalladino/php-lipsum

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

Install

Via Composer

$ composer require rpalladino/php-lipsum

Usage

CLI

$ ./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

require "vendor/autoload.php";

$lipsum = new Rpalladino\Lipsum\Lipsum();

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

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

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

License

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

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固