PHPackages                             kilte/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. [Framework](/categories/framework)
4. /
5. kilte/silex-pagination

Abandoned → [amstaffix/silex-pagination](/?search=amstaffix%2Fsilex-pagination)ArchivedLibrary[Framework](/categories/framework)

kilte/silex-pagination
======================

PaginationServiceProvider for Silex micro framework

1.1.2(9y ago)127.2k5[1 PRs](https://github.com/vermillion-php/silex-pagination/pulls)MITPHPPHP &gt;=5.3.3

Since Dec 31Pushed 8y agoCompare

[ Source](https://github.com/vermillion-php/silex-pagination)[ Packagist](https://packagist.org/packages/kilte/silex-pagination)[ RSS](/packages/kilte-silex-pagination/feed)WikiDiscussions master Synced 4d ago

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

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

[](#silexpagination)

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

[![Downloads](https://camo.githubusercontent.com/44f77caaef2363cddb77753cdf5b25a4e54a36f580b41896cf3cb7048c688870/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d737461666669782f73696c65782d706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amstaffix/silex-pagination)[![License](https://camo.githubusercontent.com/114f3680b62492b859fcd1de5fa20c7e852f02b363c9ca6a03fe3a47baeb87bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616d737461666669782f73696c65782d706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](http://opensource.org/licenses/MIT)

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/AmsTaFFix/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/AmsTaFFix/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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

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

Total

5

Last Release

3601d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9419cc23789ddeb04d2d141eb48a413e6187d2eca010762892bf21ab8695b8e?d=identicon)[AmsTaFFix](/maintainers/AmsTaFFix)

---

Top Contributors

[![AmsTaFFix](https://avatars.githubusercontent.com/u/3091599?v=4)](https://github.com/AmsTaFFix "AmsTaFFix (1 commits)")

---

Tags

paginationsilexPaginationServiceProvider

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yiisoft/data

Data providers, pagination and related abstractions

46273.5k11](/packages/yiisoft-data)[ddesrosiers/silex-annotation-provider

A silex service provider that allows the use of annotations in ServiceControllers.

25246.7k3](/packages/ddesrosiers-silex-annotation-provider)[tobiassjosten/responsible-service-provider

A Silex ServiceProvider for automagic response formatting.

3490.8k](/packages/tobiassjosten-responsible-service-provider)[propel/propel-service-provider

Propel integrationfor Silex.

2625.2k3](/packages/propel-propel-service-provider)[viames/pair

lightweight PHP framework as the air

103.0k1](/packages/viames-pair)

PHPackages © 2026

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