PHPackages                             venca-x/nette-pagination - 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. venca-x/nette-pagination

ActiveLibrary

venca-x/nette-pagination
========================

Plugin for Nette. Twitter Bootsrap pagination

v1.0.1(2y ago)22301MITPHPPHP &gt;=7.1

Since Jul 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/venca-x/nette-pagination)[ Packagist](https://packagist.org/packages/venca-x/nette-pagination)[ RSS](/packages/venca-x-nette-pagination/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

Nette pagination Twitter Bootrstrap
===================================

[](#nette-pagination-twitter-bootrstrap)

[![Build Status](https://camo.githubusercontent.com/dd0f571283e2389b42ecaaf8e1b2199410e53e98dfcfac6ddade457f47358330/68747470733a2f2f7472617669732d63692e6f72672f76656e63612d782f6e657474652d706167696e6174696f6e2e737667)](https://travis-ci.org/venca-x/nette-pagination)[![Coverage Status](https://camo.githubusercontent.com/f4914aa87e1b3ac97ddea2c1d59dc269f25e2e719cbfe6a4f83ed926f7fda469/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76656e63612d782f6e657474652d706167696e6174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/venca-x/nette-pagination?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b7012b84ee23c6e8f9d040bce260efa3a2cd506725dd2ab7b0cfcb3904beb8c0/68747470733a2f2f706f7365722e707567782e6f72672f76656e63612d782f6e657474652d706167696e6174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/venca-x/nette-pagination)[![Latest Unstable Version](https://camo.githubusercontent.com/a290338c24ec84ca3a51ffffbdcbd954b3cda2b2a8eef8d0cfd047b49f94c0ec/68747470733a2f2f706f7365722e707567782e6f72672f76656e63612d782f6e657474652d706167696e6174696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/venca-x/nette-pagination)[![Total Downloads](https://camo.githubusercontent.com/13b96203589e278f5a7d0af93d7a9b6dde41925f6e28727a0ef7b630a017bd58/68747470733a2f2f706f7365722e707567782e6f72672f76656e63612d782f6e657474652d706167696e6174696f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/venca-x/nette-pagination)[![License](https://camo.githubusercontent.com/35bf1b0bc7c1ff7b9c70d2fd7d3a368cc3cc20c05c278764bef22e061fdcf62d/68747470733a2f2f706f7365722e707567782e6f72672f76656e63612d782f6e657474652d706167696e6174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/venca-x/nette-pagination)

Plugin for Nette. Pagination with Twitter Bootstrap style Twitter Bootstrap Suports Twitter Bootstrap 3 and Twitter Bootstrap 4

VersionTwitter Bootstrap versionPHP Recommended Nettedev-master4, 3&gt;= 7.1Nette 3.00.1.x3&gt;= 5.5Nette 2.4, 2.3Installation
------------

[](#installation)

install with composer:

```
composer require venca-x/nette-pagination:dev-master

```

### Nette 3.0

[](#nette-30)

For Nette 3.0 (and PHP &gt;= 7.1) use:

```
composer require venca-x/nette-pagination:^1.0
//or
composer require venca-x/nette-pagination:dev-master

```

For Nette 2.4. and 2.3 use:

```
composer require venca-x/nette-pagination:^0.1

```

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

[](#configuration)

HomepagePresenter.php

```
/** @var int shoved page in paginator */
private $paginatorOffset;

public function actionMy()
{
    //$vp = new VencaX\NettePagination\BootstrapRendererV4();
    $vp = new VencaX\NettePagination\BootstrapRendererV4($this, 'vp');
    $vp->setMaximalPagesCount( 5 );//maximal count pages in paginator
    $paginator = $vp->getPaginator();
    $paginator->itemsPerPage = 20;
    $paginator->itemCount = $this->modelTweets->findAll()->count( "*" );

    $this->paginatorOffset = $paginator->offset;

    $this->dataSelection = $this->modelTweets->findAll()->limit( $paginator->itemsPerPage, $paginator->offset );
    //...
}

public function renderMy()
{
    $this->template->paginatorOffset = $this->paginatorOffset;
}
```

Usage
-----

[](#usage)

On all pages of paginator (without first) use meta robots noindex,follow

```
{block head}
    {if $paginatorOffset > 1}

    {/if}
{/block}

{block content}
    ...
    {control vp}
    ...
{/block}
```

Tips
----

[](#tips)

**How to change labels « Předchozí and Další »?**

Change it in the constructor:

```
$vp = new VencaX\NettePagination\BootstrapRendererV4();
$vp->setPreviousLabel('«');
$vp->setNextLabel('»');
//or
$vp = new VencaX\NettePagination\BootstrapRendererV3();
$vp->setPreviousLabel('«');
$vp->setNextLabel('»');
```

TwitterBootstrap v3
-------------------

[](#twitterbootstrap-v3)

How to use for TwitterBootstrap v3?

Usage is same as TwitterBootstrap v4. Only chnage class to **VencaX\\NettePagination\\BootstrapRendererV3**

```
/** @var int shoved page in paginator */
private $paginatorOffset;

public function actionMy()
{
    $vp = new VencaX\NettePagination\BootstrapRendererV3();
    $vp->setMaximalPagesCount( 5 );//maximal count pages in paginator
    $paginator = $vp->getPaginator();
    $paginator->itemsPerPage = 20;
    $paginator->itemCount = $this->modelTweets->findAll()->count( "*" );

    $this->paginatorOffset = $paginator->offset;

    $this->dataSelection = $this->modelTweets->findAll()->limit( $paginator->itemsPerPage, $paginator->offset );
    //...
}

public function renderMy()
{
    $this->template->paginatorOffset = $this->paginatorOffset;
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~575 days

Total

5

Last Release

909d ago

Major Versions

v0.1.1 → v1.0.02017-10-27

v0.1.x-dev → v1.0.12023-11-15

PHP version history (2 changes)v0.1.0PHP &gt;= 5.3.7

v1.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/118375a8804ba0a6a9e67531be1064cf2cf1ddd4669de5ca7cdc6f1618add53e?d=identicon)[venca-x](/maintainers/venca-x)

---

Top Contributors

[![venca-x](https://avatars.githubusercontent.com/u/4173836?v=4)](https://github.com/venca-x "venca-x (27 commits)")

### Embed Badge

![Health badge](/badges/venca-x-nette-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/venca-x-nette-pagination/health.svg)](https://phpackages.com/packages/venca-x-nette-pagination)
```

###  Alternatives

[nette/nette

👪 Nette Framework - innovative framework for fast and easy development of secured web applications in PHP (metapackage)

1.6k2.8M335](/packages/nette-nette)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[tomaj/nette-api

Nette api

36261.8k4](/packages/tomaj-nette-api)[o5/grido

Grido - DataGrid for Nette Framework

87290.5k4](/packages/o5-grido)[nextras/datagrid

Datagrid component for Nette Framework.

71268.5k4](/packages/nextras-datagrid)[nasext/dependent-select-box

Dependent Select Box for Nette Framework.

21262.8k2](/packages/nasext-dependent-select-box)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
