PHP code example of eftec / amp-generator-one

1. Go to this page and download the library: Download eftec/amp-generator-one 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/ */

    

eftec / amp-generator-one example snippets

 
$secImage= new SectionModel("The Cupcakes","","/image.jpg");
$secImage->buttons[]=new ButtonModel("More Information","#");
$secImage->buttons[]=new ButtonModel("More Information","#","warning");

$amp->sectionImage($secImage,2250,441);
 
use eftec\AmpGeneratorOne\AmpGeneratorOne;
use eftec\AmpGeneratorOne\ButtonModel;
use eftec\AmpGeneratorOne\FooterModel;
use eftec\AmpGeneratorOne\HeaderModel;
use eftec\AmpGeneratorOne\HeadModel;
use eftec\AmpGeneratorOne\LinkModel;
use eftec\AmpGeneratorOne\SectionModel;

mp->head(new HeadModel("",$base."logo.png"),70,70);

// # example section
$amp->sectionFirst(new SectionModel("Title","Description"));

// # footer
$amp->sectionFooter(new FooterModel("Copyright something(c)","See as desktop"));

amp->render(); // you also could generate a file.

$tmp=$ampgeneratorone->fixRelativeUrlthis(); 

$tmp=$ampgeneratorone->genStructuredthis(); 

$tmp=$ampgeneratorone->sidebarthis(); 

$tmp=$ampgeneratorone->headthis(); 

$tmp=$ampgeneratorone->sectionFooterthis(); 

HeaderModel());

$tmp=$ampgeneratorone->sectionAnalyticsthis(); 

$tmp=$ampgeneratorone->sectionFirstthis(); 

$tmp=$ampgeneratorone->sectionImageButtonthis(); 

$tmp=$ampgeneratorone->sectionTextthis(); 

$tmp=$ampgeneratorone->sectionTextQuotethis(); 

$tmp=$ampgeneratorone->sectionULthis(); 

$tmp=$ampgeneratorone->sectionOLthis(); 

$tmp=$ampgeneratorone->sectionButtonsthis(); 

$tmp=$ampgeneratorone->sectionColsthis(); 

$tmp=$ampgeneratorone->sectionHeaderCentralthis(); 

$tmp=$ampgeneratorone->sectionImageContentthis(); 

$tmp=$ampgeneratorone->sectionImageContentLeftthis(); 

$tmp=$ampgeneratorone->sectionTablethis(); 

$tmp=$ampgeneratorone->sectionImagethis(); 

$tmp=$ampgeneratorone->sectionGMapFullthis(); 

$tmp=$ampgeneratorone->sectionGMapBoxedthis(); 

$tmp=$ampgeneratorone->sectionNavigationthis(); 

$tmp=$ampgeneratorone->sectionColImagethis(); 

$tmp=$ampgeneratorone->setBackgroundColorthis(); 

$tmp=$ampgeneratorone->setBgImagethis(); 

$tmp=$ampgeneratorone->setClassTextColorthis(); 

$tmp=$ampgeneratorone->setPaddingthis(); 

$tmp=$ampgeneratorone->genLinkthis();