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

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

abraovic/php-paginator
======================

Simple PHP paginator for Symfony2.8+

v0.1(7y ago)0264MITHTMLPHP &gt;=5.3

Since May 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/abraovic/php-paginator)[ Packagist](https://packagist.org/packages/abraovic/php-paginator)[ Docs](https://github.com/abraovic/php-paginator)[ RSS](/packages/abraovic-php-paginator/feed)WikiDiscussions master Synced 3w ago

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

abraovic/php-paginator
======================

[](#abraovicphp-paginator)

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

[](#installation)

The preferred method of installation is via [Packagist](https://packagist.org/packages/abraovic/php-paginator) and [Composer](http://getcomposer.org/). Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require abraovic/php-paginator
```

How to use
----------

[](#how-to-use)

Add new twig template path to `app/config/config.yml`

```
# Twig Configuration
twig:
    ...
    paths:
        '%kernel.root_dir%/../vendor/abraovic/php-paginator/src/template': 'abraovic_paginate'
```

In your controller:

```
use abraovic\phpPaginator\Paginate;

class ... {
    function ... {
        return $this->render(
                    'some.html.twig',
                    [
                        ...,
                        'pagination' => Paginate::data(
                            $page, // current page
                            $limit, // max limit per page
                            $total, // total number of items
                            $this->get('router')->generate('_route_name', array(), true) // route link - replace _route_name with proper name
                        )
                    ]
                );
    }
}
```

In your twig:

```
{{ include('@abraovic_paginate/_paginate.html.twig') }}
```

If there is a [translation bundle](https://symfony.com/doc/current/translation.html) installed you can translate First and Last labels by adding the keys in your app's messages.yaml like this:

```
First: [first in some other language]
Last: [last in some other language]
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please read [CONTRIBUTING](https://github.com/abraovic/php-paginator/blob/master/CONTRIBUTORS.md) for details.

Copyright and license
---------------------

[](#copyright-and-license)

The abraovic/php-paginator library is copyright © [Ante Braovic](http://antebraovic.me) and licensed for use under the MIT License.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2588d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5057523?v=4)[Ante Braovic](/maintainers/abraovic)[@abraovic](https://github.com/abraovic)

---

Top Contributors

[![abraovic](https://avatars.githubusercontent.com/u/5057523?v=4)](https://github.com/abraovic "abraovic (2 commits)")

---

Tags

phppaginate

### Embed Badge

![Health badge](/badges/abraovic-php-paginator/health.svg)

```
[![Health](https://phpackages.com/badges/abraovic-php-paginator/health.svg)](https://phpackages.com/packages/abraovic-php-paginator)
```

###  Alternatives

[stefangabos/zebra_pagination

A generic, Twitter Bootstrap compatible, PHP pagination library that automatically generates navigation links

11923.6k](/packages/stefangabos-zebra-pagination)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21422.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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