PHPackages                             secamedia/datatables-form-bundle - 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. [API Development](/categories/api)
4. /
5. secamedia/datatables-form-bundle

ActiveSymfony-bundle[API Development](/categories/api)

secamedia/datatables-form-bundle
================================

Provides Form Types and Entities representing the DataTables AJAX Request.

v1.3(5y ago)0522WTFPLPHPPHP &gt;=5.5.9

Since Jun 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/secamedia/datatables-form-bundle)[ Packagist](https://packagist.org/packages/secamedia/datatables-form-bundle)[ Docs](http://secamedia.de/)[ RSS](/packages/secamedia-datatables-form-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

DataTables Form Types and Entities for AJAX Request
===================================================

[](#datatables-form-types-and-entities-for-ajax-request)

This is a Symfony Bundle to represent the DataTables Ajax Request Data into an entity via form types.

Installation via Composer
=========================

[](#installation-via-composer)

Install it via composer as a dependency:

`$ php composer.phar require secamedia/datatables-form-bundle`

Activation
==========

[](#activation)

Register the bundle in the kernel to activate the bundle.

```
    public function registerBundles()
    {
        $bundles = [
            ...
            new Sm\DatatablesFormBundle\SmDatatablesFormBundle(),
            ...
        ];
    }
```

How to use with DataTables ajax request
=======================================

[](#how-to-use-with-datatables-ajax-request)

To recognize the request data you have to move the datatables data into the key `datatables`:

```
$('table').DataTable({
    'ajax': {
        'url': '/ajax-request.php',
        'data': function (data) {
            // Move DataTables data into own key
            for (var d in data) {
                if (!data.hasOwnProperty(d)) {
                    continue;
                }
                data['datatables[' + d + ']'] = data[d];
                delete data[d];
            }
        },
        'type': 'POST'
    }
});
```

In your controller you can then create a form and set the entity to retrieve the data as an object:

```
use Sm\DatatablesFormBundle\Entity\DataTablesForm;
use Sm\DatatablesFormBundle\Form\Type\DataTablesFormType;
...
    public function someAction(Request $request)
    {
        $data = new DataTablesForm();
        $form = $this->createForm(DataTablesFormType::class, $data);
        $form->handleRequest($request);
        // use $data
    }
...
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~557 days

Total

4

Last Release

1944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c349d102168d52145d31553677741e2f648a7d77e834fb50a8287ddd7ec40b3?d=identicon)[secamedia](/maintainers/secamedia)

---

Top Contributors

[![secamedia-rudolph](https://avatars.githubusercontent.com/u/18288928?v=4)](https://github.com/secamedia-rudolph "secamedia-rudolph (7 commits)")

### Embed Badge

![Health badge](/badges/secamedia-datatables-form-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/secamedia-datatables-form-bundle/health.svg)](https://phpackages.com/packages/secamedia-datatables-form-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[components-web-app/api-components-bundle

Creates a flexible API for a website's structure, reusable components and common functionality.

322.8k](/packages/components-web-app-api-components-bundle)

PHPackages © 2026

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