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

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

simpsyst/paginator
==================

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

1.0.0(5y ago)113MITPHPPHP ^7.2

Since Feb 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/diegoamatos/paginator)[ Packagist](https://packagist.org/packages/simpsyst/paginator)[ Docs](http://www.diegomatos.com)[ RSS](/packages/simpsyst-paginator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Paginator @SimpSyst
===================

[](#paginator-simpsyst)

[![Maintainer](https://camo.githubusercontent.com/62d56d7a26db94d83b9fb4c415bd7c934761bf13f1ad95b0543a87aa9576ac37/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40646965676f616d61746f732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/diegoamatos)[![Source Code](https://camo.githubusercontent.com/43ea4b219c8dfa48675ba87f8176cc50b45b6af7406ec7be779bb0c464f60f14/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d73696d70737973742f706167696e61746f722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/diegoamatos/paginator)[![PHP from Packagist](https://camo.githubusercontent.com/90613c025daee1cf2d51ee589b2592410a09395e8543d42b04ab74347e159434/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73696d70737973742f706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/simpsyst/paginator)[![Latest Version](https://camo.githubusercontent.com/0ad500a4817acbfb823a042e5f4799bec11f180973d5214da389d0e4c066e6fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f646965676f616d61746f732f706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/diegoamatos/paginator/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/a9d3c9ba4e613402fffc845672d278e6b9b0ec579f9f1145447bae64c6f87005/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f646965676f616d61746f732f706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/diegoamatos/paginator)[![Quality Score](https://camo.githubusercontent.com/5851d574c2733286616410200c2dd12663318ebc9e3913e493e729c0036a4125/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646965676f616d61746f732f706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/diegoamatos/paginator)[![Total Downloads](https://camo.githubusercontent.com/e53a7cc8c4c9f48ac47fd46f8690c7a9097776603e5ad56403018448bea76fe7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696d70737973742f706167696e61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/simpsyst/paginator)

###### 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 SimpSyst
--------------

[](#about-simpsyst)

###### SimpSyst is a set of small and optimized PHP components for common tasks. Held by Diego Matos. With them you perform routine tasks with fewer lines, writing less and doing much more.

[](#simpsyst-is-a-set-of-small-and-optimized-php-components-for-common-tasks-held-by-diego-matos-with-them-you-perform-routine-tasks-with-fewer-lines-writing-less-and-doing-much-more)

SimpSyst é um conjunto de pequenos e otimizados componentes PHP para tarefas comuns. Mantido por Diego Matos. 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:

```
"simpsyst/paginator": "dev-main"
```

or run

```
composer require simpsyst/paginator:dev-main
```

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

```
