egeloen/ordered-form-bundle

Provides a form ordering support for your Symfony2 project.

Installs: 33 032

Dependents: 2

Stars: 32

Watchers: 6

Forks: 2

Open Issues: 1

Language: PHP

2.0.0 2014-12-29 21:28 UTC

README

Build Status Coverage Status Scrutinizer Code Quality Dependency Status

Latest Stable Version Latest Unstable Version Total Downloads License

The bundle allows to order your Symfony2 form fields by adding the position option. A position can either be first, last or an associative array describing before and/or after field.

Documentation

Installation

Require the bundle in your composer.json file:

{
    "require": {
        "egeloen/ordered-form-bundle": "~1.0",
    }
}

Register the bundle:

// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Ivory\OrderedFormBundle\IvoryOrderedFormBundle(),
        // ...
    );
}

Install the bundle:

$ composer update

Usage

As explain above, the bundle adds a new option called position on all forms! You can get the full documentation here.

Known limitations

Some use cases can not be handled by the bundle. They are listed here.

Testing

The bundle is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.

Contribute

We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR!

License

The Ivory Ordered Form Bundle is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.