PHP Classes
elePHPant
Icontem

HTML Generate: Generate HTML from arrays

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-04-18 (3 months ago) RSS 2.0 feedStarStarStarStar 68%Total: 227 This week: 2All time: 7,735 This week: 358Up
Version License PHP version Categories
htmlgenerate 1GNU Lesser Genera...5HTML, PHP 5
Description Author

This class can generate HTML from arrays.

It can add to a document tags of the supported types with a given list of tag attributes.

The class can set a random tag id, if none is specified. The tag can also be added to a parent tag given by id. The current tag id is returned.

The class can also generate the HTML for the whole document after it is composed.

Recommendations

how to convert html to pdf in php using fpdf
how to convert html to pdf in php using fpdf how to convert html

  Performance   Level  
Name: Tony Frezza <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 28
All time rank: 3819312 in Brazil Brazil
Week rank: 322 Up19 in Brazil Brazil Up

Details
# Html Generate


### Installation

Include Html class php file as instance a new object:
<?php
    include('html.php');
    $html = new Html;
?>

### Usage
<?php
    include('html.php');
    $html = new Html;
    
    $html->add(
        array(
            'tag'   =>  'h1',
            'text'  =>  'Hello Word!",
        )
    );
    
    //print html
    echo $html->getHtml();
    
?>
### Author
Tony Frezza - frezzatony@gmail.com



  Files folder image Files  
File Role Description
Accessible without login Plain text file example_1_basic_usage Example Example 1 Basic Usage
Accessible without login Plain text file example_2_multiple_nodes_add Example Example 2 Multiple Nodes Add
Accessible without login Plain text file example_3_parent_and_child_nodes Example Example 3 Parent And Child Nodes
Accessible without login Plain text file example_4_adding_child_by_parent_id Example Example 4 Adding Child By Parent id
Accessible without login Plain text file example_5_css_bootstrap Example Example 5 Usage with Css Bootstrap
Plain text file html.php Class The HTML class
Accessible without login Plain text file README.md Doc. README.md

 Version Control Unique User Downloads Download Rankings  
 0%
Total:227
This week:2
All time:7,735
This week:358Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:504