承接 roesch/html-format 相关项目开发

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

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

roesch/html-format

Composer 安装命令:

composer require roesch/html-format

包简介

A simple to use HTML prettifier class written in PHP. Added as a composer library in memory of Bennett Roesch (spyrosoft)

README 文档

README

Build Status StyleCI Scrutinizer Code Quality Code Coverage Packagist Version Packagist Downloads

A simple to use HTML prettifier class written in PHP. Added as a composer library in memory of Bennett Roesch (spyrosoft).

Original code from: https://github.com/spyrosoft/php-format-html-output

Install

Require this package with composer using the following command:

$ composer require roesch/html-format

Example usage:

<?php
require 'vendor/autoload.php';

$html = 'Unformatted HTML string';

// initialize class
$format = new \Roesch\Format();

// use spaces at 4 length
echo $format->html($html);

// use spaces at 2 length
echo $format->html($html, true, 2);

// use tabs
echo $format->html($html, false);

Static method example usage:

<?php
require 'vendor/autoload.php';

$html = 'Unformatted HTML string';

// use spaces at 4 length
echo \Roesch\Format::HTML($html);

// use spaces at 2 length
echo \Roesch\Format::HTML($html, true, 2);

// use tabs
echo \Roesch\Format::HTML($html, false);

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固