Download the PHP package m2mtech/api-platform-datatables-format without Composer
On this page you can find all versions of the php package m2mtech/api-platform-datatables-format. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m2mtech/api-platform-datatables-format
More information about m2mtech/api-platform-datatables-format
Files in m2mtech/api-platform-datatables-format
Package api-platform-datatables-format
Short Description Datatables format extension for API Platform.
License MIT
Homepage https://github.com/m2mtech/api-platform-datatables-format
Informations about the package api-platform-datatables-format
API Platform Datatables Format
This bundle provides the Datatables format to the API Platform.
Installation
If you are not using Flex enable the bundle:
Usage
Enable the datatables format:
Pagination
The package rewrites the query parameters start
and length
from datatables to page
and itemsPerPage
or whatever you have set as page_parameter_name
and items_per_page_parameter_name
for the API Platform.
e.g.:
Pagination is enabled by default in the API Platform.
Sorting
The package rewrites the query parameters columns
and order
from datatables to order
or whatever you have set as order_parameter_name
for the API Platform.
e.g.:
You need to enable sorting for the API Platform.
e.g. in your entity definition:
Search
The package rewrites the query parameters columns
and search
from datatables to or
for the Filter logic for API Platform.
e.g.: `
You need to install Filter logic for API Platform, an equivalent bundle or your own filter for this functionality, e.g.:
You need also to enable the search filter for the API Platform.
e.g. in your entity definition:
Output
Including the data, the output contains recordsTotal
and recordsFiltered
(which are always the same) as well as the draw
parameter from the query.
Testing
This package has been developed for php 7.4 with compatibility tested for php 7.2 to 8.1.
Changelog
Please see CHANGELOG for more information about recent changes.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of api-platform-datatables-format with dependencies
api-platform/core Version ^2.5
symfony/config Version ^5.4|^6.0
symfony/dependency-injection Version ^5.4|^6.0
symfony/http-kernel Version ^5.4|^6.0