承接 ginkelsoft/datatables 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ginkelsoft/datatables

Composer 安装命令:

composer require ginkelsoft/datatables

包简介

A simple DataTable package for Laravel

README 文档

README

Downloads Packagist License

Ginkelsoft DataTables is a flexible and easy-to-use package for managing tabular data in Laravel projects. This package requires Livewire for dynamic, AJAX-driven experiences. You can easily add filtering, searching, sorting, and bulk actions with minimal setup.

Documentation

The official documentation is now available at:

Table of Contents

  1. Requirements
  2. Installation
  3. Usage With Livewire
  4. Filters
  5. Sorting
  6. Row Actions & Bulk Actions
  7. Additional Features
  8. Contributing
  9. License

Requirements

  • PHP 8.2+
  • Laravel 10.0+
  • Livewire (Required for usage of this package.)

Installation

  1. Require the package:

    composer require ginkelsoft/datatables
  2. Publish the package views (optional) for customization:

    php artisan vendor:publish --provider="Ginkelsoft\DataTables\DataTableServiceProvider" --tag=views
  3. Publish configuration file (optional) for customization:

    php artisan vendor:publish --provider="Ginkelsoft\DataTables\DataTableServiceProvider" --tag=config

Usage With Livewire

This package requires Livewire and cannot be used without it. To integrate DataTables in your Laravel project, use the following setup:

<livewire:datatable
    model="App\\Models\\User"
    :columns="['id', 'name', 'email', 'created_at']"
    :hidden-columns="['id']"
    :filters="[
        ['column' => 'name', 'type' => 'input', 'label' => 'Naam'],
        ['column' => 'email', 'type' => 'input', 'label' => 'Email'],
        ['column' => 'created_at', 'type' => 'date', 'label' => 'Aangemaakt op']
    ]"
    :row-actions="[
        ['name' => 'edit', 'label' => 'Edit', 'route' => 'users.datatable.edit'],
        ['name' => 'delete', 'label' => 'Delete', 'route' => 'users.datatable.delete'],
        ['name' => 'view', 'label' => 'View Profile', 'url' => '/users/{id}']
    ]"
    :bulk-actions="[
        'export' => ['label' => 'Export', 'route' => 'users.datatable.export']
    ]"
/>

Filters

You can define various filters for refining results dynamically.

:filters="[
    ['column' => 'name', 'type' => 'input', 'label' => 'Naam'],
    ['column' => 'email', 'type' => 'input', 'label' => 'Email'],
    ['column' => 'created_at', 'type' => 'date', 'label' => 'Aangemaakt op']
]"

Sorting

Sorting is enabled by default. Clickable column headers allow users to sort the data in ascending or descending order.

By default, sorting is applied to the first column in the :columns array. If needed, sorting can be applied programmatically by setting:

:sort-column="'created_at'"
:sort-direction="'desc'"

Row Actions & Bulk Actions

Row Actions

:row-actions="[
    ['label' => 'Edit', 'route' => 'users.edit'],
    ['label' => 'Delete', 'url' => 'users/{id}', 'onclick' => 'return confirm(\'Are you sure?\')']
]"

Bulk Actions

:bulk-actions="[
    'delete' => ['label' => 'Delete', 'route' => 'users.bulk.delete'],
    'export' => ['label' => 'Export', 'route' => 'users.bulk.export']
]"

Additional Features

  • Multi-language Support: English, Dutch, German, French, Spanish.
  • Search Class for multi-column searching.
  • Filter Class for custom filters (status, categories, etc.).
  • Sorting Class for ascending/descending ordering.
  • Select All (with confirmation modal) to choose between only visible rows or all rows.
  • Custom Actions now support classes and inline styles.
  • Prevent row selection when clicking an action button to avoid accidental selection.

Contributing

  1. Fork this repository.
  2. Create a new branch for your feature or fix.
  3. Push your changes and open a pull request.

We welcome improvements to code quality, new features, or better documentation.

License

Ginkelsoft DataTables is open-sourced software licensed under the MIT license.

Version Changes

Changes in version 0.0.10:

  • actions have been renamed to row-actions.
  • A new configuration file has been added.
  • Ensure the Livewire component is updated, otherwise, it will not work correctly.
  • Official documentation site launched: https://datatables.ginkelsoft.com/

ginkelsoft/datatables 适用场景与选型建议

ginkelsoft/datatables 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 216 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ginkelsoft/datatables 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ginkelsoft/datatables 我们能提供哪些服务?
定制开发 / 二次开发

基于 ginkelsoft/datatables 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 216
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-26