No description
Find a file
2026-01-26 12:18:18 +01:00
.github build pipelines update 2026-01-26 12:18:18 +01:00
debian build pipelines update 2026-01-26 12:18:18 +01:00
Examples Improved Scripts inserting 2024-10-16 18:53:13 +02:00
src/Ease Add new HTML tag classes and improve type declarations 2025-10-21 23:03:41 +02:00
tests Add new HTML tag classes and improve type declarations 2025-10-21 23:03:41 +02:00
.gitignore strict types update 2024-09-28 19:16:30 +02:00
.php-cs-fixer.dist.php Update PHP version requirement to 8.1, upgrade php-cs-fixer-config, and refactor various classes and tests for improved consistency and functionality 2025-07-19 16:41:39 +02:00
.scrutinizer.yml scrutinizer config backported 2019-09-12 11:36:44 +02:00
composer.json composer: update ergebnis/php-cs-fixer-config requirement 2025-12-15 20:28:16 +00:00
Makefile Initial rework 2024-09-02 12:21:13 +02:00
phpstan-default-baseline.neon strict types update 2024-09-28 19:16:30 +02:00
phpstan-default.neon.dist strict types update 2024-09-28 19:16:30 +02:00
phpunit.xml phpunit configuration update 2024-10-01 12:08:32 +02:00
project-icon-400.png Logo and icon added 2019-10-03 22:50:45 +02:00
project-logo.png Logo and icon added 2019-10-03 22:50:45 +02:00
project-logo.svg Readme Update 2019-03-11 00:22:04 +01:00
README.md build pipelines update 2026-01-26 12:18:18 +01:00
WARP.md Copilot and Warp instructions update 2025-10-21 22:46:03 +02:00

EasePHP Framework HTML Logo

Ease Framework Html

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

GitHub issues GitHub stars

"My way how to assemble web page using PHP Objects."

Basic Example for HTML5 WebPage:

$head = new \Ease\Html\HeadTag( new \Ease\Html\TitleTag('Ease WebPage'));

$body = new \Ease\Html\BodyTag(new \Ease\Html\HeaderTag( new \Ease\Html\H1Tag('Web Page')));

$body->addItem( new \Ease\Html\ArticleTag('Example'));

$body->addItem(new \Ease\Html\FooterTag( new \Ease\Html\SmallTag( new \Ease\Html\ATag('v.s.cz','Vitex Software') ) ));

$oPage = new \Ease\Html\HtmlTag([$head,$body]);

echo $oPage;

or use the WebPage class:

$oPage = new \Ease\WebPage('Ease WebPage');

$oPage->addItem(new \Ease\Html\HeaderTag(new \Ease\Html\H1Tag('Web Page')));

$oPage->addItem(new \Ease\Html\ArticleTag('Example'));

$oPage->addItem(new \Ease\Html\FooterTag(new \Ease\Html\SmallTag(new \Ease\Html\ATag('v.s.cz',
                'Vitex Software'))));

echo $oPage;

Special Classess

Main Glue of Ease\Html is

Ease\Container

Container can contain simple text, another object or mix od them.

$group = [ new StrongTag('strong text'), 'simple text ', new DivTag( new HrTag() ) ];

$heap = new Container();
$heap->addItem('text to include');
$heap->addItem( new H1Tag('heading) );
$heap->addItem( $group );

Ease\Document

Is smarter container able to hold Scripts and cascade styles

$oPage = new Page();

and finally:

Ease\WebPage

Is Page that include Head and Body elements

$oPage = new \Ease\WebPage('Page title');
$oPage->addItem( new \Ease\Html\ImgTag( 'images/sun.png' );
$oPagr->addJavaScript('alert("Let the sun shine in!")');
echo $oPage;

Implemented HTML5 tags:

Installation

composer require vitexsoftware/ease-html

Debian Repository

sudo apt install lsb-release wget
echo "deb https://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg https://repo.vitexsoftware.com/keyring.gpg
sudo apt update
sudo apt install php-vitexsoftware-ease-html