use StaticEm\StaticTable; $table = new StaticTable(); $table->addRow(['Name', 'Age']); $table->addRow(['John', '30']); $table->addRow(['Mary', '25']); echo $table->render();
use StaticEm\StaticForm; $form = new StaticForm(); $form->addInput('name', 'text', 'Name'); $form->addInput('email', 'email', 'Email'); $form->addTextarea('message', 'Message'); echo $form->render();This code creates a new HTML form with three input fields: name (text), email (email), and message (textarea). The `render()` method outputs the HTML code for the form. In both examples, PHP static em is used to create and render static HTML elements. The library provides an easy-to-use API for creating and manipulating HTML elements without the need for cumbersome HTML markup.