承接 tiagospem/simple-tables 相关项目开发

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

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

tiagospem/simple-tables

最新稳定版本:v0.2.0

Composer 安装命令:

composer require tiagospem/simple-tables

包简介

README 文档

README

A powerful Laravel Livewire package that simplifies the creation of interactive, feature-rich data tables with minimal effort.

Overview

Livewire Simple Tables is designed to help Laravel developers quickly build beautiful, interactive data tables without the complexity often associated with table implementations. This package leverages Laravel Livewire to provide a reactive, real-time user experience.

Livewire Simple Tables Example

Features

  • Easy to Set Up: Get started with just a few lines of code
  • Powerful Data Management: Built-in pagination, sorting, and searching
  • Customizable Filters: Create dependent, reactive filters to narrow down data
  • Interactive Actions: Add row-level actions and bulk operations
  • Row Detail Views: Expand rows to show additional information
  • Beautifully Styled: Built with Tailwind CSS for a clean, modern look
  • Highly Extensible: Create custom themes, filters, and components

Installation

composer require tiagospem/simple-tables

For detailed installation instructions, see the Installation Guide.

Quick Start

Create a Table Component

php artisan st:create table UsersTable

Implement the Table Component

<?php

namespace App\Livewire;

use App\Models\User;
use Illuminate\Database\Eloquent\Builder;
use TiagoSpem\SimpleTables\Column;
use TiagoSpem\SimpleTables\SimpleTableComponent;

class UsersTable extends SimpleTableComponent
{
    public function columns(): array
    {
        return [
            Column::text('ID', 'id')->sortable(),
            Column::text('Name', 'name')->sortable()->searchable(),
            Column::text('Email', 'email')->searchable(),
            Column::text('Created At', 'created_at')->sortable(),
        ];
    }

    public function datasource(): Builder
    {
        return User::query();
    }
}

Add to Your Blade View

<div>
    <h1>Users</h1>
    
    <div class="mt-4">
        <livewire:users-table />
    </div>
</div>

Documentation

For comprehensive documentation, visit https://tiagospem.github.io/livewire-simple-tables/

Requirements

  • PHP 8.3+
  • Laravel 10+
  • Livewire 3.5.4+
  • Tailwind CSS v3

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

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