webeweb/jquery-datatables-bundle
Composer 安装命令:
composer require webeweb/jquery-datatables-bundle
包简介
Integrate jQuery Datatables with Symfony 2 and more
README 文档
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.
Donate
webeweb/jquery-datatables-bundle 适用场景与选型建议
webeweb/jquery-datatables-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.36k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2018 年 02 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「jquery」 「bundle」 「datatable」 「webeweb」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webeweb/jquery-datatables-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webeweb/jquery-datatables-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webeweb/jquery-datatables-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
This is a laravel 4 package for the server and client side of datatables at http://datatables.net/
统计信息
- 总下载量: 11.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 5
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-28
