Search by

piranha-software / livewire-grid

PiranhaGeorge

PiranhaGrid - The small, but powerful, data grid package for Laravel Livewire

Package info

github.com/PiranhaSoftware/livewire-grid

Homepage

pkg:composer/piranha-software/livewire-grid

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2026-12-04 14:20 UTC

This package is auto-updated.

Last update: 2026-12-04 15:01:57 UTC


README

PiranhaGrid PiranhaGrid

Static Badge GitHub License Latest Version on Packagist Packagist Dependency Version Packagist Dependency Version Static Badge

Aggressively Simple Data Grid for Livewire

Small, yet powerful, PiranhaGrid provides sorting, filtering, searching, pagination, actions, and more. Wrapped in a fully themeable package that works with any dataset.

Full Documentation

Full documentation can be found at https://grid.piranha.software.

Quick Start

Installation

Install PiranhaGrid using Composer:

composer require piranha-software/livewire-grid

Publish the configuration file with:

php artisan vendor:publish --tag=piranha-grid-config

Which creates the config/piranha-grid.php configuration file.

Create

To create a new PiranhaGrid, extend the Piranha\Grid\Livewire\Component class and implement the configure() and dataset() methods.

<?php

declare(strict_types=1);

namespace App\Livewire;

use App\Models\User;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Piranha\Grid\Livewire\Component;

final class UsersGrid extends Component
{
    protected function configure(): void
    {
        $this->column('name', 'Name');
        $this->column('email', 'Email', type: 'email');
    }

    protected function dataset(): LengthAwarePaginator
    {
        return User::paginate();
    }
}

Render

Just like any other Livewire component, you can render your PiranhaGrid in a Blade view using the Livewire directive:

<livewire:users-grid />

Changelog

A list of changes can be found in the CHANGELOG.md file.

License

MIT © George Palmer - Piranha Software

Vendor Licenses

Flowbite Icons (filter, chevron-sort, chevron-down, chevron-up, close, trash-bin, info-circle, spinner): MIT © 2024 Themesberg

Flowbite Theme (CSS class configurations): MIT © 2023 Bergside Inc.