PHPackages                             clippings/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. clippings/silex-pagination

AbandonedLibrary

clippings/silex-pagination
==========================

PaginationServiceProvider for Silex micro framework

3.1.0(6y ago)089.4k↓29%MITPHPPHP ^7.1

Since Dec 31Pushed 6y ago6 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (12)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)

### 3.0.0 \[21.04.17\]

[](#300-210417)

- Add PaginationFactory class
- Drop PHP 5.x support
- Upgrade to PHPUnit 6

### 2.0.0 \[23.08.16\]

[](#200-230816)

- Support Silex 2.x and Pimple 3.x

### 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

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 65% 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 ~279 days

Recently: every ~328 days

Total

9

Last Release

2282d ago

Major Versions

1.1.2 → 2.0.02016-08-23

2.0.0 → 3.0.02017-04-21

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

3.1.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

---

Top Contributors

[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (13 commits)")[![stanstst](https://avatars.githubusercontent.com/u/9391542?v=4)](https://github.com/stanstst "stanstst (5 commits)")[![AmsTaFFix](https://avatars.githubusercontent.com/u/3091599?v=4)](https://github.com/AmsTaFFix "AmsTaFFix (1 commits)")[![sstoyanov7](https://avatars.githubusercontent.com/u/9350596?v=4)](https://github.com/sstoyanov7 "sstoyanov7 (1 commits)")

---

Tags

paginationsilexPaginationServiceProvider

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[dflydev/doctrine-orm-service-provider

Doctrine ORM Service Provider

2081.7M35](/packages/dflydev-doctrine-orm-service-provider)[predis/service-provider

Predis service provider for the Silex microframework

68546.6k1](/packages/predis-service-provider)[cilex/console-service-provider

Console Service Provider

273.1M3](/packages/cilex-console-service-provider)[moust/silex-cache

Cache service provider for Silex application

33138.4k1](/packages/moust-silex-cache)[moriony/silex-sentry-provider

Sentry service provider for the Silex framwork.

1073.5k1](/packages/moriony-silex-sentry-provider)[moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

118.5k](/packages/moriony-silex-mongo-provider)

PHPackages © 2026

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