Skip to content

irfanevrens/html

 
 

Repository files navigation

Sirius HTML

Source Code Latest Version Software License Build Status Coverage Status Quality Score

Framework agnostic HTML rendering utility with an API inspired by jQuery and React.

Elevator pitch

$h = new Sirius\Html\Builder;

$h->registerTag('user-login-form', 'MyApp\Html\Components\UserLoginForm');

echo $h->make('user-login-form', ['_form_values' => $_POST]);

which will output something like

<form method="post" action="user/login" class="form form-inline">

<div class="form-control">
    <label for="email">Email/Username:</label>
    <input type="email" name="email" id="email" value="me@domain.com">
</div>

<!-- the rest of the form goes here -->

</form>

Links

About

HTML helper library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%