
| Filename | |
| Version | 1.22 |
| Age in days | 707 |
| Release date | 2024 11. 28. |
| Size | 26.15 KB |
| id | 147 |
| Name | php-ease-html |
| Package | |
| Appname | |
| Essential | |
| Vendor | |
| License | |
| Distribution | sid |
| Suite | main |
| Source | |
| Architecture | binary-i386 |
| MultiArch | |
| Maintainer | Vítězslav Dvořák |
| InstalledSize | 199 |
| Depends | libjs-jquery (>= 1.4) , php-mail , php-mail-mime , php-ease-core |
| PreDepends | |
| Breaks | |
| Enhances | |
| Section | web |
| Priority | optional |
| Description | EasePHP Framework HTML support |
| LongDescription | HTML classes for Ease Framework. |
| AutoBuiltPackage | |
| Filename | pool/sid/main/p/php-ease-html/php-ease-html_1.22_all.deb |
| MD5sum | c829bb16320f33223cd9024c767f099a |
| SHA1 | c5717ec63af771ea7caa63276a612d87a7d2b8bd |
| SHA256 | d4299594cfb9e61f77e83060517eda1f3952e9ef57496cee0186d20330f844a9 |
| SHA512 | 32fea88ff0acf9a90d2055108ef6aa51379407f101dc8ca21e3ebf250cbb4fd3c57aab876b2f0f32c5d59d94c9dd38bc080f05147eee1efce319214cfaa8cf1d |
| Size | 26780 |
| Auto-Built-Package | |
| Conflicts | ease-framework |
| Homepage | https://github.com/VitexSoftware/php-ease-html |
| Provides | |
| Suggests | php-ease-bootstrap |
| Existing | |
| fileMtime | 2024-11-28 12:35:02 |
| created | 2021-03-20 02:24:39 |
| updated | 2024-11-28 11:35:02 |


"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;
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;
composer require vitexsoftware/ease-html
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
>