Download the PHP package componenta/http-paginate-interceptor without Composer

On this page you can find all versions of the php package componenta/http-paginate-interceptor. 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 http-paginate-interceptor

Componenta HTTP Paginate Interceptor

HTTP interceptor for componenta/interceptor that turns PaginatorInterface into Componenta\Http\ResourcePaginator with prev / next links.

Русская документация

Boundary

This package contains one attribute: #[Paginate]. The attribute itself implements InterceptorInterface, so it does not need a separate #[Intercept(...)].

It does not fetch data and does not create paginators. The route handler must return Componenta\Stdlib\PaginatorInterface.

Installation

Quick Start

If the result does not implement PaginatorInterface, #[Paginate] returns it unchanged.

Response Fields

By default ResourcePaginator receives:

You can keep only selected metadata fields. results is always added automatically:

HTTP Request In Context

prev and next generation requires the current ServerRequestInterface. componenta/router-app passes the HTTP request into callable context when executing route handlers. If #[Paginate] receives a paginator without that request attribute, it throws LogicException.

Scope

#[Paginate] is restricted to Scope::HTTP.

License

MIT


All versions of http-paginate-interceptor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
componenta/http-pagination Version ^1.0
componenta/interceptor Version ^1.0
componenta/paginator Version ^1.0
componenta/scope Version ^1.0
psr/http-message Version ^2.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 componenta/http-paginate-interceptor contains the following files

Loading the files please wait ...