PHPackages                             pirasterize/sonata-form-builder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. pirasterize/sonata-form-builder

ActiveSymfony-bundle[Admin Panels](/categories/admin)

pirasterize/sonata-form-builder
===============================

A drag&amp;drop form builder for sonata admin

v0.53(3y ago)192.9k13[1 issues](https://github.com/pirasterize/sonata-form-builder/issues)MITPHPPHP ^8.1

Since Nov 24Pushed 3y ago3 watchersCompare

[ Source](https://github.com/pirasterize/sonata-form-builder)[ Packagist](https://packagist.org/packages/pirasterize/sonata-form-builder)[ Docs](https://github.com/pirasterize/sonata-form-builder)[ RSS](/packages/pirasterize-sonata-form-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (54)Used By (0)

Sonata Form Builder
===================

[](#sonata-form-builder)

A Drag &amp; Drop Form builder inspired from the Git package and adapted for Sonata-Admin with bootstrap v3 and Jquery

You need Bootstrap v3 and Jquery on your Javascript/CSS requirements and a recent Sonata Admin installation.

[![Screenshot](Resources/doc/images/Form_Builder_screenshot.png)](Resources/doc/images/Form_Builder_screenshot.png)

---

\##Install the bundle

\###Step 1: Download the bundle

You can download and put on your /src directory (like this src/Pirastru/FormBuilderBundle) or insert on your vendor directory with the follow command :

```
 php -dmemory_limit=1G ./composer.phar require  pirasterize/sonata-form-builder
```

If you have a &gt;minimum-stability&lt; error is because your symfony installation accept only stable packages. Edit composer.json file and change "minimum-stability" from "stable" to "dev" :

```
    ...
    "minimum-stability": "dev",
    ...

```

\###Step 2: Enable the bundle

Insert the follow line on your AppKernel.php in your symfony :

```
    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                // ...

                 new Gregwar\CaptchaBundle\GregwarCaptchaBundle(),
                 new Pirastru\FormBuilderBundle\PirastruFormBuilderBundle()
            );

            // ...
        }

        // ...
    }
```

\###Step 3: Configuration

Add the following configuration to your `app/config/config.yml`:

```
    gregwar_captcha: ~
```

Add the following configuration to your `app/config/parameters.yml`:

```
    formbuilder_email_from: jeanmichel@basquiat.com
```

\###Step 4: Setup the database schema

```
    $php app/console doctrine:schema:update --force
```

\###Step 5: Setup the routing

Append the following code to app/config/routing.yml or better to separate app/config/routing\_admin.yml :

```
sonata_form_builder:
    resource: '@PirastruFormBuilderBundle/Controller/FormBuilderController.php'
    type:     annotation
```

\###Step 6: Sonata admin setup

In order to have on your list of Admin entities the Form Builder you must put on your configuration file (this case app/config/sonata/sonata\_admin.yml), inside of the directive of 'sonata\_admin' the follow code :

```
sonata_admin:
    ....
    dashboard:
        ....
        groups:
            ...
            sonata.admin.group.formbuilder:
                label: Form Builder
                items:
                    - pirastru_form_builder.admin
```

\###Step 7: Sonata blocks setup

In order to have on the list of blocks the Form Builder Block available on a page put on your configuration file (app/config/sonata/sonata\_block.yml) the follow line :

```
sonata_block:
    ....
    blocks:
        ....
        pirastru_form_builder.block:
```

\###Step 8: Install assets

Run the follow command on your console to install assets :

```
    $php app/console  assets:install
```

\##To see the result

Check on your Sonata Admin Entities you should see the 'Form Builder' Menu than create a new drag&amp;drop form. After that create a page from sonata page or edit an existing one and put from the list of available blocks the block called "Form Builder Drag&amp;Drop". On Options choose the Form you just created, and take a look on the page.

\##Building the bootstrap form builder Install RequireJS

```
npm install -g requirejs

```

And run following command in directory `Resources/public/BootstrapFormBuilder`:

```
r.js -o assets/js/lib/build.js

```

\##Todo

- Fields in differents sizes
- Translations
- tests
- remove form fields that are not needed in export - Button/Captcha/Privacycheck

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 51.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~6 days

Total

53

Last Release

1181d ago

PHP version history (2 changes)v0.22PHP ^7.1

v0.47PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/267fa043bab5203b0e051d1ccabb6318025c6e19830a96e8e60f6ebad18f52fd?d=identicon)[pixart](/maintainers/pixart)

![](https://www.gravatar.com/avatar/f3ef4c9a59be9398c7604979be463e0b4a7f97ee45773652e92271bf507caeff?d=identicon)[pirasterize](/maintainers/pirasterize)

---

Top Contributors

[![pix-art](https://avatars.githubusercontent.com/u/1973973?v=4)](https://github.com/pix-art "pix-art (54 commits)")[![pirasterize](https://avatars.githubusercontent.com/u/8769656?v=4)](https://github.com/pirasterize "pirasterize (19 commits)")[![DidierLmn](https://avatars.githubusercontent.com/u/15478968?v=4)](https://github.com/DidierLmn "DidierLmn (14 commits)")[![brechtfranco](https://avatars.githubusercontent.com/u/47592455?v=4)](https://github.com/brechtfranco "brechtfranco (13 commits)")[![CaprinaeWT](https://avatars.githubusercontent.com/u/93272674?v=4)](https://github.com/CaprinaeWT "CaprinaeWT (3 commits)")[![bfranco2](https://avatars.githubusercontent.com/u/37911364?v=4)](https://github.com/bfranco2 "bfranco2 (2 commits)")

---

Tags

Symfony2builderformadminprojectsonatadragdrop

### Embed Badge

![Health badge](/badges/pirasterize-sonata-form-builder/health.svg)

```
[![Health](https://phpackages.com/badges/pirasterize-sonata-form-builder/health.svg)](https://phpackages.com/packages/pirasterize-sonata-form-builder)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
