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

amaxlab/form-bundle

View on GitHub
Deep Wiki
Context7

AmaxlabFormBundle

AmaxlabFormBundle provides some useful form types for Symfony2 framework

Install

0. Add to composer.json

composer require amaxlab/form-bundle

1. Add bundle to AppKernel.php

$bundles = array(
    ...
    new Amaxlab\Bundle\FormBundle\AmaxlabFormBundle(),
);

2. Configure

Create new recaptcha for you domain in https://www.google.com/recaptcha/intro/index.html

Add this keys to config.yml:

amaxlab_form:
    recaptcha2:
        public_key: 6LfaoQ4TAAAAAOdnLoFZIjBayGa5zUyUOOeNe3y4
        private_key: 6LfaoQ4TAAAAAJvOlPjYNgLUJMfNWllKR7zfiJb7

Form Types

1. select_or_add

Allow select from entity from standart select or add a new Entity throw attached form

2. amaxlab_recaptcha2

Add to you form new field (probably not mapped to entity)

$form
    ->add('recaptcha', 'amaxlab_recaptcha2', array(
        'mapped' => false,
    ));

Now form will not passed validation if recaptcha is invalid.

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.
aimeos/prisma
besmartand-pro/php-quality-config
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