etraxis / datatables-bundle
DataTables Symfony bundle
Installs: 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 6
Forks: 8
Type:symfony-bundle
Requires
- php: >=7.0
- psr/log: ^1.0
- symfony/config: ^2.7|^3.0|^4.0
- symfony/dependency-injection: ^2.7|^3.0|^4.0
- symfony/http-foundation: ^2.7|^3.0|^4.0
- symfony/http-kernel: ^2.7|^3.0|^4.0
- symfony/validator: ^2.7|^3.0|^4.0
Requires (Dev)
- doctrine/annotations: ^1.4
- doctrine/cache: ^1.6
- friendsofphp/php-cs-fixer: ^2.8
- phpunit/phpunit: ^5.6
- roave/security-advisories: dev-master
README
DataTables Symfony bundle
This bundle helps to implement data source actions for DataTables JavaScript plugin when it's used in server-side processing mode.
Requirements
PHP needs to be a minimum version of PHP 7.0.
Symfony must be of 2.7 or above.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require webinarium/datatables-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
If you are using Symfony 3 or below, 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 DataTables\DataTablesBundle(), ]; }
Development
./vendor/bin/php-cs-fixer fix ./vendor/bin/phpunit --coverage-html=vendor/coverage
Usage
Please see the complete usage example here.