webeweb / jquery-datatables-bundle
Integrate jQuery Datatables with Symfony 2 and more
Installs: 11 072
Dependents: 2
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1|^8.0
- ext-json: *
- doctrine/orm: ^2.5.13
- matomo/device-detector: ^3.0|^4.0|^5.0
- psr/log: ^1.0|^2.0|^3.0
- symfony/asset: ^4.4|^5.0|^6.0
- symfony/console: ^4.4|^5.0|^6.0
- symfony/framework-bundle: ^4.4|^5.0|^6.0
- symfony/serializer: ^4.4|^5.0|^6.0
- symfony/translation: ^4.4|^5.0|^6.0
- twig/twig: ^2.10|^3.0
- webeweb/bootstrap-bundle: ^4.11
- webeweb/core-bundle: ^3.6
- webeweb/core-library: ^8.70
Requires (Dev)
- doctrine/doctrine-bundle: ^1.8.1|^2.0
- masterminds/html5: ^2.6
- phpunit/phpunit: ^7.0|^9.0
- symfony/browser-kit: ^4.4|^5.0|^6.0
- symfony/monolog-bundle: ^3.0
- symfony/security-bundle: ^4.4|^5.0|^6.0
- symfony/twig-bundle: ^4.4|^5.0|^6.0
- dev-master / 4.x-dev
- v4.0.1
- v4.0.0
- v3.54.0
- v3.53.0
- v3.52.0
- v3.51.0
- v3.50.0
- v3.49.0
- v3.48.0
- v3.47.0
- v3.46.0
- v3.45.0
- v3.44.0
- v3.43.1
- v3.43.0
- v3.42.0
- v3.41.1
- v3.41.0
- v3.40.0
- v3.39.0
- v3.38.1
- v3.38.0
- v3.37.0
- v3.36.0
- v3.35.0
- v3.34.0
- v3.33.1
- v3.33.0
- v3.32.0
- v3.31.1
- v3.31.0
- v3.30.0
- v3.29.0
- v3.28.0
- v3.27.0
- v3.26.0
- v3.25.0
- v3.24.0
- v3.23.1
- v3.23.0
- v3.22.0
- v3.21.0
- v3.20.0
- v3.19.1
- v3.19.0
- v3.18.0
- v3.17.0
- v3.16.1
- v3.16.0
- v3.15.0
- v3.14.0
- v3.13.1
- v3.13.0
- v3.12.3
- v3.12.2
- v3.12.1
- v3.12.0
- v3.11.5
- v3.11.4
- v3.11.3
- v3.11.2
- v3.11.1
- v3.11.0
- v3.10.0
- v3.9.0
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.2
- v3.6.1
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.0
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.1
- v3.0.0
- v2.1.1
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-datatables-bundle
This package is auto-updated.
Last update: 2024-11-25 07:47:31 UTC
README
Integrate jQuery DataTables with Symfony 4 and more.
jquery-datatables-bundle
eases the use of jQuery DataTables to display rich
DataTables in your Symfony application by providing Twig extensions and PHP
objects to do the heavy lifting. The bundle include the excellent JS library
jQuery DataTables and this plug-ins.
Dry out your DataTables code by writing it all in PHP !
Includes :
- DataTables 1.13.8
- DataTables AutoFill 2.6.0 (DataTables plugin)
- DataTables Buttons 2.4.2 (DataTables plugin)
- DataTables JSZip 3.10.1
- DataTables pdfmake 0.2.7
- DataTables ColReorder 1.7.0 (DataTables plugin)
- DataTables DateTime 1.5.1 (DataTables plugin)
- DataTables FixedColumns 4.3.0 (DataTables plugin)
- DataTables FixedHeader 3.4.0 (DataTables plugin)
- DataTables KeyTable 2.11.0 (DataTables plugin)
- DataTables Responsive 2.5.0 (DataTables plugin)
- DataTables RowGroup 1.4.1 (DataTables plugin)
- DataTables RowReorder 1.4.1 (DataTables plugin)
- DataTables Scroller 2.3.0 (DataTables plugin)
- DataTables SearchBuilder 1.6.0 (DataTables plugin)
- DataTables SearchPanes 2.2.0 (DataTables plugin)
- DataTables Select 1.7.0 (DataTables plugin)
- DataTables StateRestore 1.3.0 (DataTables plugin)
- editableTable
Provides :
- a "wbw_jquery_datatables_delete" route to delete a managed entity by a DataTable
- a "wbw_jquery_datatables_edit" route to edit all columns provided by a DataTable
- a "wbw_jquery_datatables_export" route to export all managed entities by a DataTable
- a "wbw_jquery_datatables_index" route to display a DataTable (main and columns searches is also provide with a generic implementation)
- a "wbw_jquery_datatables_options" route to retrieve with an XML HTTP request the options of a DataTable
- a "wbw_jquery_datatables_render" route to retrieve with an XML HTTP request the HTML rendering of a DataTable
- a "wbw_jquery_datatables_serialize" route to retrieve with an XML HTTP request a managed entity by a DataTable into JSON format
If you like this package, pay me a beer (or a coffee)
Compatibility
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:
composer require webeweb/jquery-datatables-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
public function registerBundles() { $bundles = [ // ... new WBW\Bundle\CoreBundle\WBWCoreBundle(), new WBW\Bundle\BootstrapBundle\WBWBootstrapBundle(), new WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle(), ]; // ... return $bundles; }
Once the bundle is added then do:
php bin/console wbw:core:unzip-assets php bin/console assets:install
Add the bundle assets in the app/config/config.yml
file of your project:
# ... # Core configuration wbw_core: plugins: - "jquery" # Bootstrap configuration wbw_bootstrap: version: 3 # jQuery DataTables configuration wbw_jquery_datatables: theme: "bootstrap" plugins: - "responsive"
IMPORTANT NOTICE: For use with Bootstrap 4 or 5, replace '3' by version number into wbw_bootstrap.version and append the number number at 'bootstrap' into wbw_jquery_datatables theme.
Add the bundle routing in the app/config/routing.yml
file of your project:
# ... wbw_jquery_datatables: prefix: "/" resource: "@WBWJQueryDataTablesBundle/Resources/config/routing.yml"
Usage
Read the documentation.
The following commands are available:
php bin/console wbw:jquery:datatables:provider:list
Testing
To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:
git clone https://github.com/webeweb/jquery-datatables-bundle.git
cd jquery-datatables-bundle
composer install
Once all required libraries are installed then do:
php vendor/bin/phpunit
License
jquery-datatables-bundle
is released under the MIT License. See the bundled
LICENSE file for details.