Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

osmanyz/doctrine-datatable2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doctrine-datatable

jQuery Datatables For Symfony Doctrine

Usage with doctrine/dbal:

<?php

use Doctrine\DataTables;

$connection = /** instanceof Doctrine\DBAL\Connection */;

$datatables = DataTableBuilder::factory()
    ->withIndexColumn('id')
    ->withQueryBuilder(
        $connection->createQueryBuilder()
            ->select('*')
            ->from('users')
    )
    ->withRequestParams($_GET);

echo json_encode($datatables->getResponse());

Releases

No releases published

Packages

No packages published