PHP code example of wwtg99 / html_component

1. Go to this page and download the library: Download wwtg99/html_component 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/ */

    

wwtg99 / html_component example snippets


$alert = new AlertView('info'); //level: success, info, warning, danger
echo $alert->view(['message'=>'alert']);

$step = new StepView([['title'=>'step 1', 'descr'=>'one'], ['title'=>'step 2', 'descr'=>'two']]);
echo $step->view();