enjoys/bootstrap5-renderer

Renderer for enjoys/forms

2.0.0 2024-05-03 12:40 UTC

This package is auto-updated.

Last update: 2024-11-03 13:53:49 UTC


README

Renderer for enjoys/forms

Run built-in server for view example

port=$(shuf -i 2048-65000 -n 1);
php -S localhost:"${port}" -t ./example .route

Usage

use Enjoys\Forms\Renderer\Bootstrap5\Bootstrap5Renderer;
$renderer = new Bootstrap5Renderer();
/** @var \Enjoys\Forms\Form $form */
$renderer->setForm($form);
$renderer->output();

or

use Enjoys\Forms\Renderer\Bootstrap5\Bootstrap5Renderer;
/** @var \Enjoys\Forms\Form $form */
$renderer = new Bootstrap5Renderer($form);
$renderer->output();