laravilt/tables
Composer 安装命令:
composer require laravilt/tables
包简介
Complete table system with columns, filters, sorting, bulk actions, and pagination. Build powerful data tables with search, filters, inline editing, row/bulk actions, and responsive mobile-friendly layouts.
README 文档
README
Laravilt Tables
Complete table system with columns, filters, sorting, bulk actions, and pagination for Laravilt. Build powerful data tables with search, filters, inline editing, and row/bulk actions.
Features
- 📊 9 Column Types - Text, Image, Badge, Icon, Select, Toggle, Color, Relationship, Custom
- 🔍 5 Filter Types - Text, Select, Multi-Select, Boolean, Date Range
- ↕️ Sorting - Multi-column sorting with direction control
- ✅ Bulk Actions - Select and perform actions on multiple rows
- 📄 Pagination - Built-in pagination with customizable page sizes
- 📱 Responsive - Mobile-friendly with column visibility control
Column Types
| Column | Description |
|---|---|
TextColumn |
Text display with formatting options |
ImageColumn |
Image thumbnails with lightbox |
BadgeColumn |
Status badges with colors |
IconColumn |
Boolean icons (check/x) |
SelectColumn |
Inline select editing |
ToggleColumn |
Inline toggle switches |
ColorColumn |
Color swatches |
RelationshipColumn |
Display related model data |
CustomColumn |
Custom Vue component rendering |
Quick Example
use Laravilt\Tables\Table; use Laravilt\Tables\Columns\TextColumn; use Laravilt\Tables\Columns\BadgeColumn; use Laravilt\Tables\Columns\ToggleColumn; use Laravilt\Tables\Filters\SelectFilter; use Laravilt\Tables\Actions\BulkAction; Table::make() ->columns([ TextColumn::make('name') ->searchable() ->sortable(), BadgeColumn::make('status') ->colors([ 'success' => 'active', 'danger' => 'inactive', ]), ToggleColumn::make('is_featured'), ]) ->filters([ SelectFilter::make('status') ->options(['active', 'inactive']), ]) ->toolbarActions([ BulkAction::make('delete') ->label('Delete Selected') ->action(fn ($records) => $records->each->delete()), ]);
Installation
composer require laravilt/tables
Generator Commands
php artisan make:table UserTable php artisan make:table UserTable --actions
Documentation
- Complete Documentation - All column types, filters, and actions
- MCP Server Guide - AI agent integration
License
The MIT License (MIT). Please see License File for more information.
laravilt/tables 适用场景与选型建议
laravilt/tables 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 422 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「filters」 「sorting」 「tables」 「columns」 「data-tables」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 laravilt/tables 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laravilt/tables 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 laravilt/tables 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Syntactic sugar for PHP's sorting
Simple filters for laravel
Livewire Filters is a series of Livewire components that provide you with the tools to do live filtering of your data from your own Livewire components.
A lightweight WordPress hook helper library. Register hooks before WordPress loads, run callbacks only once, and more.
Nestable table drag and drop sorting.
Laravel package for rapid CRUD API scaffolding with filtering, sorting, pagination and CSV export
统计信息
- 总下载量: 422
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 23
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-12
