Download the PHP package lampager/lampager-cakephp2 without Composer

On this page you can find all versions of the php package lampager/lampager-cakephp2. 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 lampager-cakephp2

lampager-cakephp2

Build Status Coverage Status Scrutinizer Code Quality

Lampager for CakePHP 2

Rapid pagination without using OFFSET

Requirements

Note

Installing

Move Plugin/Lampager to the appropriate directory if necessary.

Basic Usage

Load as a plugin. See How To Install Plugins for detail.

Plugin needs to be loaded manually in app/Config/bootstrap.php:

Next, add 'Lampager.Lampager' to your Model class (AppModel is preferable):

Use in one or more of the following methods:

Use in Controller

At first, your Model class must have 'Lampager.Lampager' enabled. Use in a way described in the Cookbook: Pagination. Note the options that are specific to Lampager such as forward, seekable, or cursor.

Use in Model

At first, your Model class must have 'Lampager.Lampager' enabled. Simply use Model::find with lampager. The custom find type lampager (see Retrieving Your Data) works in a way similar to the core find type all with additional parameters and post processor enabled.

Classes

See also: lampager/lampager.

Name Type Extends Description
LampagerBehavior Class ModelBehavior CakePHP behavior which handles Model::find() and PaginatorComponent::paginate()
LampagerArrayCursor Class Lampager\Contracts\Cursor Multi-dimensional array cursor
LampagerPaginator Class Lampager\Paginator Paginator implementation for CakePHP
LampagerArrayProcessor Class Lampager\ArrayProcessor Processor implementation for CakePHP
LampagerColumnAccess Class Multi-dimensional array accessor
LampagerTransformer Class CakePHP query genenrator

API

See also: lampager/lampager.

Using Model::find() or PaginatorComponent::paginate() is recommended. The query is merged with CakePHP query and passed to Lampager\Query.

LampagerPaginator::__construct()
LampagerPaginator::create()

Create a new paginator instance. These methods are not intended to be directly used in your code.

LampagerPaginator::transform()

Transform a Lampager query into a CakePHP query.

LampagerPaginator::build()

Perform configure + transform.

LampagerPaginator::paginate()

Perform configure + transform + process.

Arguments

Return Value

e.g.,

(Default format when using Model::find())

LampagerTransformer::__construct()

Create a new transformer instance. This class is not intended to be directly used in your code.

Examples

This section describes the practial usages of lampager-cakephp2.

Use in Controller

The example below shows how to accept a cursor parameter from a request and pass it through PaginatorComponent::settings. Be sure that your Model class has 'Lampager.Lampager' enabled.

And the pagination links can be output as follows:

Supported database engines

MySQL, MariaDB, PostgreSQL, and SQLite

Supported!

Microsoft SQL Server

Not supported.


All versions of lampager-cakephp2 with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
composer/installers Version *
lampager/lampager Version ^0.4
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 lampager/lampager-cakephp2 contains the following files

Loading the files please wait ....