Download the PHP package fibtegis/filament-infinite-scroll without Composer
On this page you can find all versions of the php package fibtegis/filament-infinite-scroll. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fibtegis/filament-infinite-scroll
More information about fibtegis/filament-infinite-scroll
Files in fibtegis/filament-infinite-scroll
Package filament-infinite-scroll
Short Description Seamless infinite scrolling plugin that replaces pagination in Filament Tables.
License Apache-2.0
Homepage https://github.com/fibtegis/filament-infinite-scroll
Informations about the package filament-infinite-scroll
Filament Infinite Scroll v3
Filament Infinite Scroll is a lightweight plugin that replaces the standard Filament v3 table pagination with a fluid, auto-loading infinite scroll mechanism. It is compatible with all tables, including Resources, Relation Managers, Widgets, and standalone Table Builders.
As the user approaches the end of a list, more rows are fetched transparently via Livewire, preserving filters, search, and sorting.
Developed and maintained by Fibtegis Yazılım Proje ve Danışmanık Hizmetleri LTD. ŞTİ. https://fbt.gs
Features
- 🔄 Seamless Integration: Smooth infinite scroll on any Filament table.
- 🪄 One-Line Setup: Enable it by simply adding the
->infinite()
method. - 🏎️ Efficient Server Usage: Low server memory usage as records are fetched in batches.
- 🌗 Theme-Aware: Works in both dark and light modes, inheriting your panel's theme.
- 📏 Auto-Height: Automatically calculates the table height once and keeps it fixed for the session, making only the table body scrollable.
- ⚙️ Auto-Reset: Automatically resets when the user changes filters, search, or sorting.
- 🛠️ Modern Standards: Fully PSR-4 compliant, installable via Composer, and auto-discoverable by the panel.
Requirements
Package | Version |
---|---|
PHP | 8.1+ |
Laravel | 10 or 11 |
Filament | 3.0+ |
Livewire | Ships with Filament |
Alpine.js | Ships with Filament |
Installation
Install the package into your project via Composer:
After installation, it's good practice to clear cached views and plugins:
The plugin is auto-discovered by Filament. No manual registration is needed.
Quick Start
Enabling infinite scroll is just a two-step process:
-
Use the Trait: Add the
InteractsWithInfiniteScroll
trait to your respectiveListRecords
page, relation manager, or table widget. - Enable the Method:
Inside your
table()
method, chain the->infinite()
method to your table definition.
That's it! Your table will now automatically load new records when you scroll to the bottom.
Configuration
The infinite()
method accepts a parameter to define the number of records to load per batch.
Option | Default | Description |
---|---|---|
perPage |
25 |
The number of records to fetch in each batch. |
How It Works
- A
Table::mixin
adds the->infinite()
method. This method disables native pagination and limits the query based on the current page. - The
InteractsWithInfiniteScroll
Trait tracks the current$page
number and whether all records have been loaded ($infiniteEnded
). - An Alpine.js component uses an
IntersectionObserver
to detect when the end of the page is reached. - When the end of the page is reached, the
loadMore()
method is triggered via Livewire. - On initial page load, Alpine.js calculates the maximum height of the table container once and injects this style into the page's
<head>
tag. This ensures the style is permanent and unaffected by Livewire updates. - When the records run out (
$infiniteEnded = true
), the observer is automatically stopped.
💖 Supporting the Project
If you find this plugin useful and would like to support its future development, you can do so by simply acquiring our company's token. Your support is greatly appreciated and helps us continue to maintain and improve this project.
- Token: Fibtegis Token (Solana)
- Contract:
CXun4JaKiDLmPHrcMLbB2v9ZEqXztp7SsRtgHpmYpump
- Buy/View on GMGN: https://gmgn.ai/sol/token/CXun4JaKiDLmPHrcMLbB2v9ZEqXztp7SsRtgHpmYpump
License
Published under the Apache-2.0 License. See the LICENSE
file for details.
© 2025 Fibtegis Yazılım Proje ve Danışmanık Hizmetleri LTD. ŞTİ.
Contributors ✨
Thanks goes to these wonderful people:
OccTherapist 💻 |
All versions of filament-infinite-scroll with dependencies
filament/filament Version ^3.2.118
illuminate/contracts Version ^10.45|^11.0|^12.0
spatie/eloquent-sortable Version ^4.0
spatie/laravel-package-tools Version ^1.13.5