2017 © Pedro Peláez
 

library silex-pagination

PaginationServiceProvider for Silex micro framework

image

amstaffix/silex-pagination

PaginationServiceProvider for Silex micro framework

  • Tuesday, July 5, 2016
  • by AmsTaFFix
  • Repository
  • 1 Watchers
  • 14 Stars
  • 4,098 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

SilexPagination

A simple pagination provider for Silex, (*1)

Downloads License, (*2)

Requirements

  • PHP >= 5.3.3

Usage

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

More information available here, (*3)

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"?

See example for more information., (*4)

Traits

\Kilte\Silex\Pagination\PaginationTrait adds the following shortcut:, (*5)

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

Tests

$ composer install
$ vendor/bin/phpunit

Changelog

1.1.1 [31.08.14]

  • Added unit tests
  • Other small improvements

1.1.0 [29.06.2014]

  • Updated pagination to 1.1.0

1.0.1 [26.02.2014]

  • Moved pagination service to another library

1.0.0 [31.12.2013]

  • First release

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:, (*7)

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:, (*8)

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

LICENSE

The MIT License (MIT), (*9)

The Versions

05/07 2016

dev-master

9999999-dev

PaginationServiceProvider for Silex micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sapogov
by Kilte Leichnam

silex pagination paginationserviceprovider

05/07 2016

1.1.2

1.1.2.0

PaginationServiceProvider for Silex micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sapogov
by Kilte Leichnam

silex pagination paginationserviceprovider

31/08 2014

1.1.1

1.1.1.0

PaginationServiceProvider for Silex micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kilte Leichnam

silex pagination paginationserviceprovider

29/06 2014

1.1.0

1.1.0.0

Simple PaginationServiceProvider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kilte Leichnam

silex pagination paginationserviceprovider

26/02 2014

1.0.1

1.0.1.0

Simple PaginationServiceProvider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kilte Leichnam

silex pagination paginationserviceprovider

31/12 2013

1.0.0

1.0.0.0

Simple PaginationServiceProvider for Silex

  Sources   Download

The Requires

  • php >=5.3.3

 

The Development Requires

by Kilte