indigophp/fuelphp-fieldset-twig

FuelPHP Fieldset Twig integration

dev-master / 0.1.x-dev 2015-03-24 20:15 UTC

README

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads

FuelPHP Fieldset Twig integration.

Install

Via Composer

$ composer require indigophp/fuelphp-fieldset-twig

Usage

This package provides an easy way to use fuelphp/fieldset with Twig.

use Indigo\Fuel\Fieldset\RenderProvider\CoreRenders;
use Indigo\Fuel\Fieldset\Twig\FieldsetExtension;

$extension = new FieldsetExtension(new CoreRenders);

$twigEnvironment->addExtension($extension);

Twig syntax:

{{ render_form(form) }}

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.