Weave Code
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

devmachine/form-bundle

View on GitHub
Deep Wiki
Context7

DevmachineFormBundle

Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight

Symfony form extensions for Bootstrap date/datetime widgets, typeahead based autocomplete and other helpers.

Update 2017

In modern world of React, Angular and Vue there is no much point in solutions like this. Use your favourite front-end framework + Symfony API. However, you can still use this bundle if you want, see the demo for details.

Installation

Install this bundle using Composer. Add the following to your composer.json for Symfony 3.0+:

{
    "require": {
        "devmachine/form-bundle": "~2.0"
    }
}

Register bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...

        new Devmachine\Bundle\FormBundle\DevmachineFormBundle(),
    ];
}

Integration

To add Javascript support to the form with devmachine type(s) form_javascript twig block must be called.

{% extends 'AppBundle::layout.html.twig' %}

{% block content %}
    {{ form_start(form) }}
    {{ form_widget(form) }}
    {{ form_end(form) }}
{% endblock %}

{# Put this block in parent template somewhere at the bottom of page. #}
{% block javascripts %}
    {{ form_javascript(form) }}
{% endblock %}

The approach used is same as in famous GenemuFormBundle.

Note: it is safe to use both DevmachineFormBundle and GenemuFormBundle in one project.

Documentation

Topics:

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky