illuminate/pagination
Laravel’s pagination component for generating paginated results and navigation links from query builders and Eloquent. Provides Paginator and LengthAwarePaginator, simple/advanced pagination, customizable views, and easy integration with HTTP requests.
Architecture fit is optimal for Laravel applications as a core framework component, designed for seamless integration with Eloquent, Query Builder, and Blade. Standalone use outside Laravel is unsupported (0 dependents) and relies on Laravel-specific conventions like service container bindings. Integration feasibility is trivial within Laravel projects but non-trivial for non-Laravel systems due to complex dependency chain requirements (illuminate/collections, contracts, support). Technical risks include version mismatches when used outside Laravel (e.g., incompatible Illuminate package versions), runtime errors from missing container bindings, and instability in unsupported configurations. Key questions: Why is this package published separately if not intended for standalone use? What are the official Laravel guidelines for non-framework usage?
Stack fit is excellent for Laravel-based stacks (e.g., Laravel + MySQL, Livewire, Jetstream) where pagination is automatically wired via service providers. For non-Laravel stacks, integration requires manual bootstrapping of Illuminate dependencies and container setup, which is not recommended. Migration path is seamless for existing Laravel projects (no action needed); migrating from non-Laravel solutions requires rewriting logic to align with LengthAwarePaginator/Paginator interfaces. Compatibility is strict: PHP 8.3+, ext-filter, and precise versions of illuminate/collections (v13+), contracts (v13+), and `support
How can I help you explore Laravel packages today?