PHP code example of another / tabgen

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

    

another / tabgen example snippets


$container = new Header(tag:"div", class:"header",style:"display:flex",attribute:"MyAttr=value");

$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataArray(["header1","header2","header3"]);
$container->wrapper($header)

$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataString("header1")
        ->addDataString("header2")
        ->addDataString("header3")
$container->wrapper($header)

$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataArray(["header1","header2","header3"]);
$header->addDataArray(["header2","header3","header4"]);
$container->wrapper($header)

$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataString("header1")
        ->addDataString("header2")
        ->addDataString("header3")
        ->dataStringBuild()
        ->addDataString("header4")
        ->addDataString("header5")
        ->addDataString("header6");
$container->wrapper($header)