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

Dependent Forms Bundle Laravel Package

anacona16/dependent-forms-bundle

View on GitHub
Deep Wiki
Context7

DependentFormsBundle

DependentFormsBundle provides dependent form type.

Important

This bundle is based on: ShtumiUsefulBundle updated for use it with Symfony >= 3.4, 4.0 and 5.0 based on Flex.

Only Dependent Forms included, no Ajax Autocomplete, no DateRange form type, no DQL custom functions.

If you are looking for a previous Symfony version see the branch symfony-33.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require anacona16/dependent-forms-bundle

This command requires you to have Composer installed globally, as explained in the Composer documentation.

Verify DependentFormsBundle was added to you kernel

// config/bundles.php
return [
    // ...
    Anacona16\Bundle\DependentFormsBundle\DependentFormsBundle::class => ['all' => true],
    // ...
];

Import routes

# config/routes/dependent_forms.yaml
anacona16_dependent_forms:
    resource: '@DependentFormsBundle/Resources/config/routing.xml'

Update your configuration

Add form theming to twig

# config/packages/twig.yaml
twig:
    ...
    form_themes:
        - '@DependentForms/Form/fields.html.twig'

Prepare the Web Assets of the Bundle

php bin/console assets:install --symlink

Load jQuery to your views

<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>

Documentation

Read documentation

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.
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
spatie/mailcoach-vapor
spatie/laravel-javascript-views