zendframework/zend-paginator
Abandoned Zend Framework paginator component for splitting data collections into pages and rendering pagination controls. Repository moved to laminas/laminas-paginator; use Laminas for active maintenance and current documentation.
paginate() or Eloquent-based solutions. Laravel’s pagination system is deeply integrated with query builder, caching, and API resources (e.g., LengthAwarePaginator), while this package lacks equivalent functionality.illuminate/database, lack of Eloquent integration, or API resource support). Manual dependency injection and template overrides are still required, increasing maintenance burden.paginate()?paginate()->through())?spatie/laravel-query-builder, fractal for API resources) provides superior pagination with zero dependency overhead. This package introduces:
zendframework/zend-paginator in composer.json.@paginate) may clash with Laravel’s @foreach loops or {{ $items->links() }}.DB::table() calls.Model::paginate(10) or DB::table('users')->paginate().// Before (Zend)
$paginator = new Zend\Paginator\Adapter\DbSelect($dbSelect);
$paginator->setItemCountPerPage(10);
// After (Laravel)
$users = User::paginate(10); // Eloquent
// OR
$users = DB::table('users')->paginate(10); // Query Builder
// Before
@foreach ($this->paginator as $item)
{{ $item->name }}
@endforeach
{{ $this->paginator->getPages()->render() }}
// After
@foreach ($users as $user)
{{ $user->name }}
@endforeach
{{ $users->links() }}
Fractal or Laravel’s Resource classes with paginate().links(), appends(), onEachSide()) to ensure parity.zendframework/zend-db as a stopgap).zendframework/zend-stdlib).Zend\View helpers).Zend\Paginator\Exception instead of Eloquent).paginate()->remember()). Manual caching required.cursor() for large datasets).getCollection() vs. Laravel’s getCollection()).@stack or @push.How can I help you explore Laravel packages today?