mathsgod/html

1.0.14 2020-12-29 03:04 UTC

This package is auto-updated.

Last update: 2024-10-29 05:59:42 UTC


README

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>