定制 gorlabs/tailwind-datatables 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

gorlabs/tailwind-datatables

Composer 安装命令:

composer require gorlabs/tailwind-datatables

包简介

Yajra DataTables integration with Tailwind CSS and Alpine.js for Laravel projects.

README 文档

README

Türkçe

Quick Start Guides

For installation and detailed usage steps, please review the following guides:

You can follow these documents to better understand your package.

Package View Image

A fully customizable package that seamlessly integrates the full power of Yajra DataTables with the modern Tailwind CSS and Alpine.js interface into your Laravel projects. Easily manage everything from server-side processing to rich column customization.

Features

  • Seamless Integration: Provides all core Yajra DataTables features (server-side processing, searching, pagination, sorting, buttons) with Tailwind CSS and Alpine.js.
  • Reusability: A Composer package that can be easily integrated into Laravel projects.
  • Customizability: Easily adapts to your own Tailwind configurations and theme colors.
  • Performance: Maintains performance by preserving the existing Yajra infrastructure.
  • Backward Compatibility: Easy and secure updates with versioning compliant with SemVer rules.
  • Easy Getting Started Experience: Quickly start using with quick start guides and clear examples.
  • Rich Column Customization: Easily apply visual enhancements like date formats, status badges, text truncation, and more.

Installation and Usage

To add the package to your Laravel project via Composer:

composer require gorlabs/tailwind-datatables

Configuration

You can publish the configuration file to modify the package's default settings:

php artisan vendor:publish --tag=gorlabs-tailwind-datatables-config

This command will copy the config/gorlabs-tailwind-datatables.php file to your project.

Asset Publishing (If Needed)

To publish the package's CSS files to your project's resources/css directory (to include in your own Tailwind pipeline):

php artisan vendor:publish --tag=tailwind-datatables-css

This command will copy the published CSS files under resources/css. You will need to import these files in your own resources/css/app.css file. A separate publishing command is not required for JavaScript files; they can be imported directly from the vendor directory.

Example Projects

You can examine our ready-to-use example projects to see how the package works with Livewire and Vue.js stacks. These projects are full-fledged Laravel applications demonstrating the installation and basic usage of the package.

Running Example Projects

Each example project manages its own dependencies and database.

  1. Clone the Main Package:
    git clone https://github.com/gorlabs/tailwind-datatables.git
    cd tailwind-datatables
  2. Run the Vue.js Example:
    cd examples/vue
    composer install         # Install dependencies (automatically links main package)
    npm install              # Install frontend dependencies
    cp .env.example .env     # Create .env file
    php artisan key:generate
    php artisan migrate:fresh --seed # Create database and seed data
    npm run dev              # Start Vite development server
    php artisan serve        # Start Laravel development server
    # Open http://localhost:8000/posts in your browser (or login)
  3. Run the Livewire example:
    cd ../livewire
    composer install
    npm install
    cp .env.example .env
    php artisan key:generate
    php artisan migrate:fresh --seed
    npm run dev
    php artisan serve
    # Open your Livewire page in the browser

Contributing

Bug reports, feature requests, and code contributions are welcome. Please refer to the Contributing Guide.

License

The Gorlabs Laravel Tailwind DataTables package is released under the MIT License.. Buy me a coffee QR Code or http://www.buymeacoffee.com/gorlabs

gorlabs/tailwind-datatables 适用场景与选型建议

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 0
  • Forks: 0
  • 开发语言: CSS

其他信息

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