PHP code example of xana / gen-html

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

    

xana / gen-html example snippets


    
use Xana\GenHtml\Elements\Button;  
use Xana\GenHtml\Elements\Email;  
use Xana\GenHtml\Elements\Form;  
use Xana\GenHtml\Elements\Password;  
use Xana\GenHtml\Elements\TextArea;  
  
re'));
 
$paragraphWithInlineLink->render();
  
$defaultAttrs = [  
    "  
             ->addElement(new TextArea('the-text', $defaultAttrs))  
             ->addElement(new Button("Login"));
               
 echo $form->render();