Download the PHP package roesch/html-format without Composer
On this page you can find all versions of the php package roesch/html-format. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download roesch/html-format
More information about roesch/html-format
Files in roesch/html-format
Download roesch/html-format
More information about roesch/html-format
Files in roesch/html-format
Vendor roesch
Package html-format
Short Description A simple to use HTML prettifier class written in PHP. Added as a composer library in memory of Bennett Roesch (spyrosoft)
License MIT
Homepage https://github.com/lcherone/html-format
Package html-format
Short Description A simple to use HTML prettifier class written in PHP. Added as a composer library in memory of Bennett Roesch (spyrosoft)
License MIT
Homepage https://github.com/lcherone/html-format
Please rate this library. Is it a good library?
Informations about the package html-format
HTML formatter class.
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:
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
Contributing
Please see CONTRIBUTING for details.
Credits
- Bennett Roesch
- Lawrence Cherone
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of html-format with dependencies
PHP Build Version
Package Version
Requires
php Version
~5.6|~7.0
The package roesch/html-format contains the following files
Loading the files please wait ....