Download the PHP package ttskch/pagination-service-provider without Composer

On this page you can find all versions of the php package ttskch/pagination-service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pagination-service-provider

PaginationServiceProvider

Build Status Latest Stable Version Total Downloads

This service provider allows you to use KnpPaginatorBundle in your Silex application.

Requirements

Getting Started

For Silex 2.x

For Silex 1.x

And enable this service provider in your application:

If you need, you can configure default query parameter names and templates as below (almost same as origin):

Then you can create pagination instance and render it in view:

Usage

KnpPaginatorBundle can paginate many things. But in Silex application we may use for:

However KnpPaginatorBundle doesn't sort or filter these data automatically via request query parameter. If you want to sort or filter these data you should do by hand.

Sort or filter array

When you want to sort or filter simple two-dimensional array, you can use Cake\Utility\Hash (autoloaded) like as below:

See the official document for more information of usage of Hash class.

Sort or filter Doctrine\DBALQueryBuilder

When you use Doctrine\DBALQueryBuilder you can sort or filter by SQL clauses like as below:

Demo

You can see demo code here. You also can run demo easily on your local by following command.

Now you see demo on http://localhost:8888 like below.

image

Additional features

This service provider also provides bootstrap3-based beautiful pagination and filtration templates. You can use it as below:

When you use the pagination-bootstrap3.html.twig template, you can configure the list of Items per page selector.

You also can define translations for some labels in the messages domain.

Note

This service provider depends on TwigServiceProvider and TranslationServiceProvider. Please register them before register PaginationServiceProvider.


All versions of pagination-service-provider with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
silex/silex Version ~2.0
twig/twig Version ~1.27|~2.0
symfony/twig-bridge Version ~2.8|~3.0
symfony/translation Version ~2.8|~3.0
knplabs/knp-paginator-bundle Version ~2.5
cakephp/utility Version ~3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ttskch/pagination-service-provider contains the following files

Loading the files please wait ....