rafaelqm/laravel-datatables
Composer 安装命令:
composer require rafaelqm/laravel-datatables
包简介
jQuery DataTables API for Laravel 4|5
README 文档
README
This package is created to handle server-side works of DataTables jQuery Plugin via AJAX option by using Eloquent ORM, Fluent Query Builder or Collection.
Feature Overview
- Supports the following data source
- Eloquent ORM
- Fluent Query Builder
- Collection [available on v5.x and later]
- DataTable Service Implementation (v6.x).
- Adding or editing content of columns and removing columns
- Modify column values via Blade Template Engine or by using Closure
- Works with ALL the DATABASE supported by Laravel
- Works with Oracle Database using Laravel-OCI8 package
- Works with DataTables v1.10++.
- Note: DT Legacy code is not supported on v5.x
- Works with DataTables v1.9 and v1.10 legacy code.
- Extended column filtering via
filterColumnAPI. - Extended column ordering via
orderColumnAPI. - Extended Query Builder functionality allowing you to filter using Datatables class directly.
- Decorate your data output using
league\fractalTransformer with Serializer support. - Works with Laravel Dependency Injection and IoC Container.
- Provides a DataTable Html Builder to help you use the package with less code.
- Provides XSS filtering function to optionally escape all or specified column values using
escapeColumns('*'\['column'])method. - Provides Query Logging when application is in debug state. Important: Make sure that debug is set to false when your code is in production
- Easily attach a resource on json response via
->with()method. - Built-in support for exporting to CSV, EXCEL and PDF using Laravel-Excel.
- Built-in printer friendly view or create your own by overriding
printPreview()method. - Provides an artisan command for generating a DataTable service and scope.
- See change logs for more details.
Requirements:
- PHP 5.5.9 or later.
- Laravel 5.0 or later.
- DataTables jQuery Plugin v1.10.x
Laravel 4.2 & DataTables v1.9.x Users
Most of the latest updates/features are not available on these versions. Please check L4 Branch and L5 DT1.9 for old documentations of its features.
Buy me a beer
Documentations
- You will find user friendly and updated documentation in the wiki here: Laravel Datatables Wiki
- You will find the API Documentation here: Laravel Datatables API
- Demo Application is available for artisan's reference.
Quick Installation
composer require rafaelqm/laravel-datatables:~6.0
Service Provider
Rafaelqm\Datatables\DatatablesServiceProvider::class
Facade
Datatables facade are automatically registered as an alias for Rafaelqm\Datatables\Datatables class.
Configuration and Assets
$ php artisan vendor:publish --tag=datatables
And that's it! Start building out some awesome DataTables!
Upgrading from v5.x to v6.x
- Change all occurrences of
rafaelqm\DatatablestoRafaelqm\Datatables. (Use Sublime's find and replace all for faster update). - Remove
Datatablesfacade registration. - Temporarily comment out
Rafaelqm\Datatables\DatatablesServiceProvider. - Update package version on your composer.json and use
rafaelqm/laravel-datatables: ~6.0 - Uncomment the provider
Rafaelqm\Datatables\DatatablesServiceProvider.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email aqangeles@gmail.com instead of using the issue tracker.
Credits
- This project is used to be a fork from bllim/laravel4-datatables-package.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
rafaelqm/laravel-datatables 适用场景与选型建议
rafaelqm/laravel-datatables 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.02k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「datatables」 「datatable」 「laravel4」 「datatables jquery plugin」 「laravel5」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rafaelqm/laravel-datatables 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rafaelqm/laravel-datatables 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rafaelqm/laravel-datatables 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.
Laravel DataTables plugin to support Mongodb
Plug-ins for DataTables
Vanilla Components Integration with Laravel
Data Table will allow you to easily create Listing, Searching, Sorting and Download CSV.
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
统计信息
- 总下载量: 2.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-03