Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Form Bundle Laravel Package

elao/form-bundle

View on GitHub
Deep Wiki
Context7

ElaoFormBundle

Best served with Elao/form.js!

Tools & enhancements for Symfony 2 forms

Installation:

Add ElaoFormBundle to your composer.json:

$ composer require "elao/form-bundle":"~2.1"

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Elao\Bundle\FormBundle\ElaoFormBundle(),
    );
}

Usage:

Use the provided form template, globally:

# Twig Configuration
twig:
    form_themes:
        - "@ElaoForm/Form/form_elao_layout.html.twig"

Or on a specific form:

{% form_theme form '@ElaoForm/Form/form_elao_layout.html.twig' %}

Features:

Collections:

Provide support for collection:

$('[data-collection]').collection();

Note: For more details, see Elao/form.js collection documentation.

Help:

Provide an help option that automatically adds an help block to the field. Use as below:

$builder->add('email', EmailType::class, array('help' => "A valid email address"));

Note: The help string is gonna be translated by default just like the label of the field.

Buttons:

Provide sortcut for adding submit and reset buttons: All form have now an optional option "submit" and "reset", setting it to true adds a default submit/reset button

$form = $this->createForm(PostType::class, $post, array('submit' => true, 'reset' => true));
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels