PHPackages                             angelxmoreno/phalcon-collection-paginator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. angelxmoreno/phalcon-collection-paginator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

angelxmoreno/phalcon-collection-paginator
=========================================

A Phalcon paginator adapter for Phalcon Collections

v1.0.0(8y ago)2431MITPHP

Since Sep 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/angelxmoreno/phalcon-collection-paginator)[ Packagist](https://packagist.org/packages/angelxmoreno/phalcon-collection-paginator)[ RSS](/packages/angelxmoreno-phalcon-collection-paginator/feed)WikiDiscussions master Synced 2d ago

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

Phalcon Collection Paginator
============================

[](#phalcon-collection-paginator)

A Phalcon paginator adapter for Phalcon Collections [![Build Status](https://camo.githubusercontent.com/ebc654989828b770cd162676490b60e4cf8e652f9b117b11db84893c01dc70e1/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f616e67656c786d6f72656e6f2f7068616c636f6e2d636f6c6c656374696f6e2d706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/angelxmoreno/phalcon-collection-paginator)[![Codacy Badge](https://camo.githubusercontent.com/12d8df12ef48d7762b8564a5d442c542b0eab364d26b03258eb8d3bbd7de18d5/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6365643933383736323462623430643539306561383632663538323933396139)](https://www.codacy.com/app/angelxmoreno/phalcon-collection-paginator?utm_source=github.com&utm_medium=referral&utm_content=angelxmoreno/phalcon-collection-paginator&utm_campaign=Badge_Grade)[![Code Climate](https://camo.githubusercontent.com/7f3a42c059dcd8167c2fea589eea28158fdcd081933c0e2f2e8f66148a8489c3/687474703a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f616e67656c786d6f72656e6f2f7068616c636f6e2d636f6c6c656374696f6e2d706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/angelxmoreno/phalcon-collection-paginator)[![License](https://camo.githubusercontent.com/1e1cb7bae9fc55a01fc5443d26e358dc21c129253bcfa9841db85c4f25aa2ecf/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)](http://angelxmoreno.mit-license.org)

Why create this?
----------------

[](#why-create-this)

Being familiar with the various [Pagination data adapters](https://olddocs.phalconphp.com/en/3.0.0/reference/pagination.html#data-adapters)available to the `Phalcon\Mvc\Model`, I expected to see similar adapters for `Phalcon\Mvc\Collection`. This project is to provide a pagination data adapter for ODM in Phalcon.

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

[](#installation)

1. Use composer
2. Run ```
    composer require angelxmoreno/phalcon-collection-paginator
    ```
3. Make sure to include Composer's autoload.php file as part of your bootstrapping process ```
    require 'vendor/autoload.php';
    ```

Configuration
-------------

[](#configuration)

PropertyDescriptionOptionalDefaultlimitThe number of items to fetch at a timeyes30pageThe current page set to fetchyes1collectionThe collection class' FQN to use for fetchingno`none`find\_queryAn array to use when building the query for the page set. *Must be a `find()` compatible array.*yes\[\]Example
-------

[](#example)

```
