PHPackages                             evheniy/simple-pagination-bundle - 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. [Search &amp; Filtering](/categories/search)
4. /
5. evheniy/simple-pagination-bundle

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

evheniy/simple-pagination-bundle
================================

The SimplePaginationBundle adds the ability to use simple pagination in your application.

1.6(11y ago)012.7k1MITPHPPHP &gt;=5.3.0

Since Apr 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/evheniy/SimplePaginationBundle)[ Packagist](https://packagist.org/packages/evheniy/simple-pagination-bundle)[ RSS](/packages/evheniy-simple-pagination-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (8)Used By (1)

SimplePaginationBundle
======================

[](#simplepaginationbundle)

[![knpbundles.com](https://camo.githubusercontent.com/7ac7ccaff1d3cd222faada377f91b9e5ba2d0875ea4ec6f6f0c4c3f31978fb16/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f53696d706c65506167696e6174696f6e42756e646c652f6261646765)](http://knpbundles.com/evheniy/SimplePaginationBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/39edb3cae8af3079338a9d2fac527471f951f3e5e5f5d0559d6518f61b1327dd/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f73696d706c652d706167696e6174696f6e2d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/evheniy/simple-pagination-bundle) [![Total Downloads](https://camo.githubusercontent.com/29f8be4950628b227d1bb94751413ea4607ea99c92b3982be416566c7200417d/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f73696d706c652d706167696e6174696f6e2d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/evheniy/simple-pagination-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/3ebce2b046312c25192801431156a15ea6136c2330015ec145960303de4cc709/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f73696d706c652d706167696e6174696f6e2d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/evheniy/simple-pagination-bundle) [![License](https://camo.githubusercontent.com/9f14094b844338dcaf523e22823b4741e16f55d50d15950e194d21b32d8de544/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f73696d706c652d706167696e6174696f6e2d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/evheniy/simple-pagination-bundle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d110c3e8dbc55d05b236455fac76118778b638f0423a6e827409409e5cebc5c2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f53696d706c65506167696e6174696f6e42756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/SimplePaginationBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/b503c2e54fba157edf5ef58a6b4c53473e24e76bd653493c3dec07d158b1c032/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f53696d706c65506167696e6174696f6e42756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/SimplePaginationBundle/build-status/master)

[![Build Status](https://camo.githubusercontent.com/1de3d1606ab5c8b2fd9442aca9a6f2fef8b609cfb863f65ac4e5f13c25e0588a/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f53696d706c65506167696e6174696f6e42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/evheniy/SimplePaginationBundle)

This bundle provides the ability to use simple pagination in your Symfony2 application.

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

[](#installation)

SimplePaginationBundle:

```
$ composer require evheniy/simple-pagination-bundle "1.*"

Or add to composer.json

"evheniy/simple-pagination-bundle": "1.*"

```

AppKernel:

```
    public function registerBundles()
        {
            $bundles = array(
                ...
                new Evheniy\SimplePaginationBundle\SimplePaginationBundle(),
            );
            ...

```

Controller

```
$pagination = $this->container->get('pagination');
$pageParameter = 'page';
$page = $request->get($pageParameter, 1);//page number
$size = $request->get('size', 10);//items per page
$range = 10;//navigation links on page

return $this->render(
            'AppBundle:Default:index.html.twig',
            array(
                ...
                'pagination'  => $pagination->paginate(
                    $request->get('_route'),
                    $resultsCount,
                    $page,
                    $size,
                    $range,
                    $request->query->all(),
                    $pageParameter
                )
            )
        );

```

Layout for [Twitter Bootstrap](https://github.com/evheniy/TwitterBootstrapBundle)

```
{% include "SimplePaginationBundle::pagination.bootstrap.html.twig" %}

```

Or simple

```
{% include "SimplePaginationBundle::pagination.html.twig" %}

```

And styles for example like this

```

.pagination {
    text-align: center;
}
.pagination span a {
    display: inline-block;
    padding: 4px 8px;
    margin: 3px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
.pagination span a:hover {
    color: #333;
    text-decoration: none;
}
.pagination span a:active {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}
.pagination span.current {
    display: inline-block;
    padding: 4px 8px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

```

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/SimplePaginationBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/pagination_bundle.html)

[Demo](http://makedev.org/search/?q=php+Composer+Symfony2+Google+phpunit)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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 ~2 days

Total

7

Last Release

4069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (14 commits)")

---

Tags

searchpaginationSymfony2Simple

### Embed Badge

![Health badge](/badges/evheniy-simple-pagination-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evheniy-simple-pagination-bundle/health.svg)](https://phpackages.com/packages/evheniy-simple-pagination-bundle)
```

###  Alternatives

[javer/sphinx-bundle

Provides integration of Sphinx search engine with Symfony using SphinxQL

24189.7k](/packages/javer-sphinx-bundle)[ddmaster/postgre-search-bundle

Tools to use full-text search PostgreSQL in Doctrine.

1391.0k](/packages/ddmaster-postgre-search-bundle)[mongerinc/search-request

Represent complex search queries and convert them to and from JSON

242.1k](/packages/mongerinc-search-request)

PHPackages © 2026

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