sy / html
HTML components
Installs: 1 371
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
- sy/webcomponent: ^2
Requires (Dev)
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2024-05-08 21:31:04 UTC
README
HTML components
Installation
Install the latest version with
$ composer require sy/html
Basic Usage
<?php use Sy\Component\Html\Page; $page = new Page(); $page->setTitle('Page example'); $page->setBody('Hello world!'); echo $page;
Output:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Page example</title> </head> <body> Hello world! </body> </html>