PHPackages                             kitsunecode/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. kitsunecode/paginator

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

kitsunecode/paginator
=====================

Paginator is simple and is ready to generate results navigation in your application

v1.0.0(4y ago)016MITPHPPHP &gt;=7.4

Since Aug 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/enosfox/paginator)[ Packagist](https://packagist.org/packages/kitsunecode/paginator)[ Docs](https://www.kitsunews.com)[ RSS](/packages/kitsunecode-paginator/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Paginator @KitsuneCode
======================

[](#paginator-kitsunecode)

###### Paginator is an extremely compact and easy to use component. You only have to configure its behavior once by the counter, and then use the render method to create a nav with all the navigation links. Easy with having a coffee to use and interacting with your database.

[](#paginator-is-an-extremely-compact-and-easy-to-use-component-you-only-have-to-configure-its-behavior-once-by-the-counter-and-then-use-the-render-method-to-create-a-nav-with-all-the-navigation-links-easy-with-having-a-coffee-to-use-and-interacting-with-your-database)

Paginator é um componente extremamente compacto e fácil de usar. Você só precisa configurar seu comportamento uma vez pelo contrutor, e depois usar o método render para criar uma nav com todos os links de navegação. Fácil com tomar um café para usar e interagir com seu banco de dados.

About KitsuneCode
-----------------

[](#about-kitsunecode)

###### KitsuneCode is a set of small and optimized PHP components for common tasks. Held by Enos S. S. Silva and the Kitsune team. With them you perform routine tasks with fewer lines, writing less and doing much more.

[](#kitsunecode-is-a-set-of-small-and-optimized-php-components-for-common-tasks-held-by-enos-s-s-silva-and-the-kitsune-team-with-them-you-perform-routine-tasks-with-fewer-lines-writing-less-and-doing-much-more)

KitsuneCode é um conjunto de pequenos e otimizados componentes PHP para tarefas comuns. Mantido por Enos S. S. Silva e a equipe Kitsune. Com eles você executa tarefas rotineiras com poucas linhas, escrevendo menos e fazendo muito mais.

### Highlights

[](#highlights)

- Easy to configure and customize via ***constructor*** class (Fácil para configurar e personalizar via ***construtor*** da classe)
- Simple to generate paging with only five arguments (Simples de gerar paginação com apenas cinco argumentos)
- ***pager*** method to assemble results pagination (Método ***pager*** para montar a paginação de resultados)
- ***render*** method to mount html ready to navigate (Método ***render*** para montar o html pronto para navegar)
- Navigation structure with custom classes in elemenos ***nav***, ***a*** and ***span*** (Estrutura de navegação com classes personalizadas em elemenos ***nav***, ***a*** e ***span***)
- Methods ***limit*** and ***offset*** to retrieve values ​​and integrate your ***SQL query*** (Método ***limit*** e ***offset*** para resgatar valores e integrar a sua ***consulta SQL***)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

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

[](#installation)

Paginator is available via Composer:

```
"kitsunecode/paginator": "1.0.*"
```

or run

```
composer require kitsunecode/paginator
```

Documentation
-------------

[](#documentation)

###### For details on how to use the paginator, see the sample folder with details in the component directory

[](#for-details-on-how-to-use-the-paginator-see-the-sample-folder-with-details-in-the-component-directory)

Para mais detalhes sobre como usar o paginator, veja a pasta de exemplo com detalhes no diretório do componente

```
