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

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.
htinlynn/genius-helper
maco-studios/hephaestus
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