Skip to content

mathsgod/html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

html

Description

A simple way to create html element

How to use

echo html("a")->href("https://google.com")->text("Hello world!");
//<a href="https://google.com">Hello world</a>


echo html("div")->button->class("btn btn-xs")->type("submit")->text("Submit");
//<div><button class="btn btn-xs" type="submit">Submit</button></div>