PHPackages                             lzerma/datatables-doctrine - 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. lzerma/datatables-doctrine

ActiveLibrary[API Development](/categories/api)

lzerma/datatables-doctrine
==========================

Biblioteca para integra��o do doctrine com o Datatables jQuery Plugin.

240PHP

Since Apr 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lzerma/datatables-doctrine)[ Packagist](https://packagist.org/packages/lzerma/datatables-doctrine)[ RSS](/packages/lzerma-datatables-doctrine/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Datatables - Doctrine
=====================

[](#datatables---doctrine)

This module provides a interface for integration with twitter bootstrap.

First you should create dd in your doctrine configuration this line

```
return array(
    'doctrine' => array(
        ...,
        'configuration' => array(
            'orm_default' => array(
                'string_functions' => array(
                    "remove_accents" => "Datatables\Doctrine\Dql\RemoveAccents"
                )
            ),
        ),
    )
);

```

Create the function in postgres

```
-- Function: remove_accents(character varying)

-- DROP FUNCTION remove_accents(character varying);

CREATE OR REPLACE FUNCTION remove_accents(character varying)
  RETURNS character varying AS
$BODY$
SELECT TRANSLATE($1, 'áéíóúàèìòùãõâêîôôäëïöüçÁÉÍÓÚÀÈÌÒÙÃÕÂÊÎÔÛÄËÏÖÜÇ', 'aeiouaeiouaoaeiooaeioucAEIOUAEIOUAOAEIOOAEIOUC')
$BODY$
  LANGUAGE sql VOLATILE
  COST 100;
ALTER FUNCTION remove_accents(character varying)
  OWNER TO mpc2;

```

For work with your project, you must need extends the Datatables\\Doctrine\\DefaultRepository

Example: YourRepository.php

```
class YourRepository extends Datatables\Doctrine\DefaultRepository {
...

```

```
$this->setAColumns(
                array(
                    array("campo"=>"district.id","type"=>"number"),
                    array("campo"=>"district.name","type"=>"string"),
                    array("campo"=>"city.name","type"=>"string")
                )
        );
        $this->setAColumnsArray(
                array(
                    array("campo" => "id", "html" =>
                        '

                            '
                    ),
                    array("campo" => "name"),
                    array("campo" => "city")
                )
        );

        $qb = $this->getEntityManager()->createQueryBuilder();
        $qb->select("district");
        $qb->from("Base\Entity\District", "district");
        $qb->innerJoin("Base\Entity\City", "city", "WITH", "city = district.city");

        return $this->getDatatables($qb, $params);

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![rmmoriya](https://avatars.githubusercontent.com/u/1071478?v=4)](https://github.com/rmmoriya "rmmoriya (7 commits)")[![lzerma](https://avatars.githubusercontent.com/u/1020217?v=4)](https://github.com/lzerma "lzerma (4 commits)")

### Embed Badge

![Health badge](/badges/lzerma-datatables-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/lzerma-datatables-doctrine/health.svg)](https://phpackages.com/packages/lzerma-datatables-doctrine)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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