Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pager Laravel Package

kgilden/pager

kgilden/pager is a lightweight pagination package for Laravel/PHP applications. It helps split long result sets into pages and render simple pager links, making it easy to browse lists, search results, and other query output with minimal setup.

View on GitHub
Deep Wiki
Context7

A paginator library to split results into multiple pages

Frequently asked questions about Pager
What is kgilden/pager used for in Laravel?
It is intended for splitting collections into pages and rendering simple navigation controls in Laravel and Blade views. The evaluation suggests it fits isolated paging needs such as arrays, search results, and admin tables, especially where native pagination is awkward. It is not recommended as the standard pagination layer across an application.
How do I install kgilden/pager via Composer?
Install it with Composer using the package name kgilden/pager. The evaluation notes minimal dependencies and MIT licensing, but you should first verify the repository is public and review the package's Composer constraints. Test the install in a non-critical Laravel module before adopting it broadly.
Does kgilden/pager support Laravel 11 and Laravel 12?
Compatibility with Laravel 11 and Laravel 12 is not confirmed in the provided evaluation. The last release was May 2023, and the assessment flags possible missing support for newer Laravel versions. Check the package's Composer constraints and run a compatibility spike before relying on it.
How do I render pager links in a Blade view with kgilden/pager?
The package is described as Blade-friendly and supports customizable pagination views. Render the pager in your Blade template using the package's API, but verify the exact directive or method in the package documentation or source. Test link escaping and accessibility in any custom markup you use.
Does kgilden/pager preserve query strings when paginating filtered results?
Query-string preservation is listed as a package feature, but the evaluation flags lost query parameters as a failure mode to test. Verify links on filtered search URLs and confirm existing parameters are retained. Add regression tests around filtered URLs before relying on this behavior in production.
Can I customize the pagination views in kgilden/pager?
The package advertises customizable pagination views. Check the package source or documentation for how views are published or overridden, and test custom markup for escaping and accessibility. Keep customizations small so you can replace the package with native pagination more easily if needed.
Does kgilden/pager paginate Eloquent queries or only arrays?
The evaluation does not confirm Eloquent or query-builder support; it describes the package as useful for arrays, search results, and admin tables. For Eloquent and query-builder usage, Laravel's native pagination is the safer architectural default. Verify the package API against your specific use case before adopting it.
Is kgilden/pager a good alternative to Laravel's built-in pagination?
Laravel's native LengthAwarePaginator, paginate(), simplePaginate(), and cursorPaginate() cover most pagination needs and are the better default for Eloquent and query-builder usage. The evaluation recommends standardizing on native pagination unless kgilden/pager proves a clear gap. Use cursor pagination for high-volume lists where offset paging degrades.
Is kgilden/pager actively maintained and safe for production?
Treat it as a small, reversible tactical dependency rather than a platform commitment. The package has low visibility, an unknown repository, and a last release from May 2023, so pin the version and document internal ownership. Be prepared to fork or replace it, and do not assume timely upstream fixes.
How should I test kgilden/pager for page bounds and filtered URLs?
Add regression tests for page=0, negative pages, out-of-range pages, offsets, and page counts. Also test filtered search URLs to confirm query-string preservation and link generation. A time-boxed spike with automated tests is recommended before broader use.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo