PHPackages                             juizmill/silex-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. juizmill/silex-pagination

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

juizmill/silex-pagination
=========================

PaginationServiceProvider for Silex micro framework

2.0.0(11y ago)039MITPHPPHP &gt;=5.3.3

Since Dec 31Pushed 11y agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

SilexPagination
===============

[](#silexpagination)

A simple [pagination](https://github.com/Kilte/pagination) provider for [Silex](http://silex.sensiolabs.org)

[![Build Status](https://camo.githubusercontent.com/77753327f6816e937137c8bc296b60ae8343062ea36ef7752ba0a8976ca3ad2f/68747470733a2f2f7472617669732d63692e6f72672f4b696c74652f73696c65782d706167696e6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Kilte/silex-pagination)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.3

Usage
-----

[](#usage)

```
$app->register(new \Kilte\Silex\Pagination\PaginationServiceProvider);
$pages = $app['pagination'](100, 500);
```

More information available [here](https://github.com/Kilte/pagination)

### Options

[](#options)

- `'pagination.per_page'` - Items per page (20 by default)
- `'pagination.neighbours'` - Number of neighboring pages at the left and the right sides (4 by default)

### How to use it in the my "views"?

[](#how-to-use-it-in-the-my-views)

See example for more information.

### Traits

[](#traits)

`\Kilte\Silex\Pagination\PaginationTrait` adds the following shortcut:

`object pagination(int $total[, int $current[, int $perPage[, int $neighbours = 4]]])` - is alias for `$app['pagination']()`

Tests
-----

[](#tests)

```
$ composer install
$ vendor/bin/phpunit

```

Changelog
---------

[](#changelog)

### 1.1.1 \[31.08.14\]

[](#111-310814)

- Added unit tests
- Other small improvements

### 1.1.0 \[29.06.2014\]

[](#110-29062014)

- Updated pagination to 1.1.0

### 1.0.1 \[26.02.2014\]

[](#101-26022014)

- Moved pagination service to another library

### 1.0.0 \[31.12.2013\]

[](#100-31122013)

- First release

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

[](#contributing)

- Fork it
- Create your feature branch (git checkout -b awesome-feature)
- Make your changes
- Write/update tests, if necessary
- Update README.md, if necessary
- Push your branch to origin (git push origin awesome-feature)
- Send pull request
- ???
- PROFIT!!!

Do not forget merge upstream changes:

```
git remote add upstream https://github.com/Kilte/silex-pagination
git checkout master
git pull upstream
git push origin master

```

Now you can to remove your branch:

```
git branch -d awesome-feature
git push origin :awesome-feature

```

LICENSE
=======

[](#license)

The MIT License (MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

4081d ago

Major Versions

1.1.1 → 2.0.02015-03-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/01399a69d16f1084c9111c02387bdd3ebb023d8929f1235c9be784ffdd100552?d=identicon)[juizmill](/maintainers/juizmill)

---

Top Contributors

[![juizmill](https://avatars.githubusercontent.com/u/1959742?v=4)](https://github.com/juizmill "juizmill (3 commits)")

---

Tags

paginationsilexPaginationServiceProvider

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/juizmill-silex-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/juizmill-silex-pagination/health.svg)](https://phpackages.com/packages/juizmill-silex-pagination)
```

###  Alternatives

[igorw/config-service-provider

A config ServiceProvider for Silex with support for php, json and yaml.

215636.5k13](/packages/igorw-config-service-provider)[franmomu/silex-pagerfanta-provider

Silex ServiceProvider for Pagerfanta Library

1312.1k](/packages/franmomu-silex-pagerfanta-provider)[emanueleminotto/faker-service-provider

Faker Service Provider for Silex

162.9k](/packages/emanueleminotto-faker-service-provider)

PHPackages © 2026

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