PHPackages                             binaryspanner/quickforms - 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. [Templating &amp; Views](/categories/templating)
4. /
5. binaryspanner/quickforms

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

binaryspanner/quickforms
========================

A Symfony bundle to allow the creation of forms from YML files.

0.1.0(9y ago)0141MITPHPPHP ^7.0

Since May 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/chrBrd/QuickForms)[ Packagist](https://packagist.org/packages/binaryspanner/quickforms)[ RSS](/packages/binaryspanner-quickforms/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (14)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4adc05287f2587430c7d2d82dc11eb8786af1a1a083e78a863161d269d73f4ef/68747470733a2f2f7472617669732d63692e6f72672f6368724272642f517569636b466f726d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/chrBrd/QuickForms)[![Test Coverage](https://camo.githubusercontent.com/784ac75f08e89f89c9aa7e4aeb7706a9b51f701f93b094f39697017071537c13/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6368724272642f517569636b466f726d732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/chrBrd/QuickForms/coverage)[![Code Climate](https://camo.githubusercontent.com/3632e09021de135750cbdb2964e72217df83071815c0ea1ed457ab1adfdc25da/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6368724272642f517569636b466f726d732f6261646765732f6770612e737667)](https://codeclimate.com/github/chrBrd/QuickForms)[![Issue Count](https://camo.githubusercontent.com/77396c84c824ae096d6256e69a1ff0a4a41637d41bacb12ec093e6655f8b0522/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6368724272642f517569636b466f726d732f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/chrBrd/QuickForms)

Quick Forms
===========

[](#quick-forms)

A Symfony bundle to allow the creation of forms from YML files.

Installation
------------

[](#installation)

The bundle can be installed using Composer:

```
composer require binaryspanner/quickforms

```

Use
---

[](#use)

First the bundle needs registered in the Symfony app's kernel:

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        // ...
        new BinarySpanner\QuickForms\QuickFormsBundle(),
    ];

    // ...
}
```

When using the default settings the bundle will search for form files in `Resources/forms` in the kernel's root directory (normally `"path-to-Symfony-project"/app/`).

To load form files the filenames have to be added to the bundle's settings in `config.yml`:

```
# app/config/config.yml
# ...
quick_forms:
    file_names: [ 'file1.yml', 'file2.yml', ...]
```

An example form file can be found in the bundle's `Resources/forms` directory. This form file will be loaded by default when the bundle's `file_names` property is unset in `config.yml`.

The directories the bundle searches in can be changed by modifying the `root_paths` and/or `directory_paths` bundle settings in `config.yml`:

```
# app/config/config.yml
# ...
quick_forms:
    root_paths: [ '%kernel.root_dir%', '%kernel.root_dir%/../src' ]
    directory_paths: [ 'custom/forms' ]
    file_names: [ 'file1.yml', 'file2.yml', ...]
```

Note that absolute paths can be used in the `directory_paths` setting.

Once the form layout files have been setup a view template needs to be created - if you're using Twig you can create Symfony forms as normal:

```
{# app/Resources/views/quickform/form.html.twig #}
{% extends 'base.html.twig' %}

{% block body %}
    Form One:
    {% form_theme forms.example_form_one.view forms.example_form_one.theme %}
    {{ form_start(forms.example_form_one.view) }}
    {{ form_widget(forms.example_form_one.view) }}
    {{ form_end(forms.example_form_one.view) }}

    Form Two:
    {% form_theme forms.example_form_two.view forms.example_form_two.theme %}
    {{ form_start(forms.example_form_two.view) }}
    {{ form_widget(forms.example_form_two.view) }}
    {{ form_end(forms.example_form_two.view) }}
{% endblock %}
```

Finally the views need to be loaded in the controller:

```
// src/AppBundle/Controller/DefaultController.php
// ...
/**
 * @Route("/quickforms", name="quickforms")
 */
public function quickForms()
{
    $quickForms = $this->get('quick_forms');

    $forms = $quickForms->loadForms();

    return $this->render('quickform/form.html.twig', array(
        'forms' => $forms
    ));
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3285d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1982251c758a0b3c04f46fcd1c4c39dd07937c79ab4f2d5142ccb1a547df911e?d=identicon)[binaryspanner](/maintainers/binaryspanner)

---

Top Contributors

[![chrBrd](https://avatars.githubusercontent.com/u/16094329?v=4)](https://github.com/chrBrd "chrBrd (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/binaryspanner-quickforms/health.svg)

```
[![Health](https://phpackages.com/badges/binaryspanner-quickforms/health.svg)](https://phpackages.com/packages/binaryspanner-quickforms)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[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)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[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)

PHPackages © 2026

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