PHP code example of jp-toolkit / html-helper
1. Go to this page and download the library: Download jp-toolkit/html-helper 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/ */
jp-toolkit / html-helper example snippets
use JPToolkit\HtmlHelper\Html;
echo Html::tag( 'p', 'Lorem ipsum dolor sit amet', ['class' => 'text-justify'] );
use JPToolkit\HtmlHelper\Form;
$attributes = [
'name' => 'username',
'id' => 'username',
'value' => '',
'type' => 'text'
];
echo Form::input( $attributes );
use JPToolkit\HtmlHelper\Init as HtmlHelperInit;
new HtmlHelperInit();