PHP code example of mathsgod / html
1. Go to this page and download the library: Download mathsgod/html library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mathsgod / html example snippets
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>