承接 bgaze/ipsum-html 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bgaze/ipsum-html

Composer 安装命令:

composer require bgaze/ipsum-html

包简介

A PHP utility to generate Lorem Ipsum HTML 5

README 文档

README

IpsumHtml is a PHP utility that allows to generate Lorem Ipsum HTML 5.

The HTML5 reference used to build this lib is https://developer.mozilla.org/en-US/docs/Web/HTML/Element.
No support for any older version of HTML is planned.

Installation

Simply install the library using composer:

composer require bgaze/ipsum-html

Basic usage

To quickly generate Lorem Ipsum HTML, import the IpsumHtml class into your script, then use it statics methods to generate what you need.

use Bgaze\IpsumHtml\IpsumHtml;

// Generate 50 random html blocks.
$array = IpsumHtml::random(50);

// Generate a full webpage containing 100 random html blocks and print it prettyfied.
echo IpsumHtml::webpage(100);

// Generate and display a HTML table with 4 colums and 10 rows, then print it minified.
echo IpsumHtml::table(4, 10)->minify();

Documentation

IpsumHtml ships three main classes which all methods are statics:

  • Bgaze\IpsumHtml\IpsumHtml: creates HTML nodes randomly populated with Lorem Ipsum text.
  • Bgaze\IpsumHtml\Html: creates HTML nodes. They can be manipulated fluently, minified and prettyfied.
  • Bgaze\IpsumHtml\Ipsum: generates random Ipsum Ipsum text.

There are three types of HTML nodes, handled by a dedicated class:

  • Bgaze\IpsumHtml\Nodes\PlainText: used to handle plain text sections of HTML structures.
  • Bgaze\IpsumHtml\Nodes\Comment: used to handle the special HTML comment tag.
  • Bgaze\IpsumHtml\Nodes\Node: used to handle any other HTML tag.

You can find documentation into following sections:

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固