dushica/html

There is no license information available for the latest version (0.3) of this package.

Simple HTML builder for PHP

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dushica/html

0.3 2015-07-26 11:02 UTC

This package is not auto-updated.

Last update: 2025-10-01 15:01:07 UTC


README

$builder = new Dushica\Html\Builder;

// By default are 'input' and 'br'
$builder->setNoClose(['input', 'br', 'hr']);

//Add one more tag that not must be closed
$builder->addNoClose('link');

//Format html code, by default is true
$builder->minify = false;

$builder
    ->html()

        ->body()
            
            ->text('Insert your Firstname: ')
            
            ->br()
            
            ->input(['placeholder'=>'Firstname'])
            
            ->hr()
            
            ->text('Insert your Lastname: ')
            
            ->br()
            
            ->input(['placeholder'=>'Lastname'])

        ->end()
    
    ->end();

echo $builder;