Download the PHP package victor-codigo/doctrine-paginator-adapter without Composer

On this page you can find all versions of the php package victor-codigo/doctrine-paginator-adapter. 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 doctrine-paginator-adapter

DoctrinePaginatorAdapter

Description

PHP classes for doctrine pagination

Requeriments

Usage

  1. PHP >= 8.1
  2. Doctrine >= 2.20

Development

  1. PHP >= 8.1
  2. Doctrine >= 2.20
  3. PHPUnit 11.5
  4. PHPStan
  5. Php-cs-fixer

Installation

Install with Composer:

Classes

DoctrinePaginatorAdapter: Class to create the pagination
PaginatorInterface: Interface for paginator adapter
PaginatorException: Page exceptions

Usage

DoctrinePaginatorAdapter methods:

Method Description Params Return
__construct Creates a class instance 1. Doctrine\ORM\Tools\Pagination\Paginator or null: doctrine paginator
createPaginator Creates a new instance of DoctrinePaginatorAdapter 1. Doctrine\ORM\Query or Doctrine\ORM\QueryBuilder: Query to create pagination DoctrinePaginatorAdapter<TKey, TResult>
getPageItems Gets the number of items by page int or null
setPagination Sets the page to return, and the number of items per page 1. int: Page number.
2. int: Number of items by page
DoctrinePaginatorAdapter<TKey, TResult>
getPagesRange Get a range of pages 1. int: First page.
2. int: Last page.
3. int: Number of items per page
\Generator
getAllPages Gets all pages int: Number of items per page \Generator
getPageCurrent Gets current page int
getPagesTotal Gets the total number of pages int
hasNext Gets if there is another page after the current page int
hasPrevious Gets if there is a page before the current page int
getPageNextNumber Gets the number of the page after int or null
getPagePreviousNumber Gets the number of the page before int or null
getItemsTotal
and
count
Gets the total number of items int
getIterator Gets an iterator of the current page \Tarversable

All versions of doctrine-paginator-adapter with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
doctrine/orm Version >=2.20.0 <4.0.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 victor-codigo/doctrine-paginator-adapter contains the following files

Loading the files please wait ...