PHPackages                             aristonis/laravel-livewire-dataview - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. aristonis/laravel-livewire-dataview

ActiveLibrary[Database &amp; ORM](/categories/database)

aristonis/laravel-livewire-dataview
===================================

this package manage livewire components to show set of item and handle quering of database

0.1.0(5mo ago)00MITPHP

Since Nov 20Pushed 5mo agoCompare

[ Source](https://github.com/aristonis/laravel-livewire-dataview)[ Packagist](https://packagist.org/packages/aristonis/laravel-livewire-dataview)[ RSS](/packages/aristonis-laravel-livewire-dataview/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Livewire Dataview
=========================

[](#laravel-livewire-dataview)

[![Latest Version on Packagist](https://camo.githubusercontent.com/48925e675460e4929369f978f5c4bb13e6017f2f7dba0b8b010df69b02bafb85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726973746f6e69732f6c61726176656c2d6c697665776972652d64617461766965772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aristonis/laravel-livewire-dataview)[![GitHub Tests Action Status](https://camo.githubusercontent.com/946e9d203c3e2bf3e4ddfaf0cd87d06b4506776f6762be66757ebd92fcfd51ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726973746f6e69732f6c61726176656c2d6c697665776972652d64617461766965772f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/aristonis/laravel-livewire-dataview/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d1369d8b77f2ff755442bef92a0f87428445303f32ecc25679f8d806992478d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726973746f6e69732f6c61726176656c2d6c697665776972652d64617461766965772f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/aristonis/laravel-livewire-dataview/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/aa877d934c94cebd687616d7b48fe27c2f93cc7abfbd3d8952371d038784ae91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61726973746f6e69732f6c61726176656c2d6c697665776972652d64617461766965772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aristonis/laravel-livewire-dataview)

Laravel Livewire Dataview is a developer-focused toolkit for building SOLID-friendly data listing experiences in Livewire 3. It standardises how you configure queries, pagination and row rendering while keeping your components expressive and testable.
[see docs](https://aristonis.github.io/laravel-livewire-dataview-docs/)

Features
--------

[](#features)

- Opinionated abstract component (`DataViewComponent`) that centralises pagination, queries and rendering.
- Strongly validated traits for query definitions, pagination configuration and per-item views.
- Default Blade view that wires your per-item Livewire components and pagination links.
- `dataview:make` artisan command to scaffold a DataView component plus optional item component and Blade view.
- Config publishing for project-wide defaults (`config/dataview.php`) and reusable stubs for custom scaffolding.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10.x or 11.x with Livewire 3.6+
- Composer and Node tooling if you plan to style the bundled Blade view

Installation
------------

[](#installation)

```
composer require aristonis/laravel-livewire-dataview
```

Optionally publish the package assets:

```
php artisan vendor:publish --tag=dataview-views    # copues views component and customize it
php artisan vendor:publish --tag=dataview-config   # copies config/dataview.php
php artisan vendor:publish --tag=dataview-stubs    # copies stub templates
```

Quick start
-----------

[](#quick-start)

1. Scaffold a dataview plus item component:

    ```
    php artisan dataview:make Users/UserTable --with-item
    ```
2. Edit the generated component so it extends `Aristonis\LaravelLivewireDataview\DataViewComponent` and configure the query, pagination and item view:

    ```
