sy/html

HTML components

2.8.5 2024-05-24 19:59 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>