Download the PHP package aneeskhan47/laravel-pagination-merge without Composer

On this page you can find all versions of the php package aneeskhan47/laravel-pagination-merge. 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 laravel-pagination-merge

Pagination Merge for Laravel 5/6/7/8/9/10/11

Latest Version on Packagist Total Downloads GitHub Code Style Action Status [Laravel Versions]()

A simple Laravel pagination merge package that allows you to merge multiple ->paginate() instances.

Some Background

I had to deal with something like that in a project I was working on, where in one of the pages I had to display two types of publication paginated and sorted by the created_at field. In my case, it was a Post model and an Event Model (hereinafter referred to as publications).

The only difference is I didn't want to get all the publications from the database and then merge and sort the results, as you can imagine it would rise a performance issue if we have hundreds of publications.

So I figure out that it would be more convenient to paginate each model and only then, merge and sort them. that's why I built this package.

This package is heavily inspired by this stackoverflow answer

โšก๏ธ Installation

For Laravel 5.5+

Require this package with composer:

The service provider will be auto-discovered. You do not need to add the provider anywhere.

For Laravel 5.0 to 5.4

Require this package with composer:

Find the providers key in config/app.php and register the PaginationMerge Service Provider.

Find the aliases key in config/app.php and register the PaginationMerge alias.

๐Ÿš€ Usage

๐Ÿ’ฐ Support the development

Do you like this package? Support it by donating

๐Ÿงช Testing

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

๐Ÿค Contributing

Please see CONTRIBUTING for details.

๐Ÿ”’ Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

๐Ÿ™Œ Credits

๐Ÿ“œ License

The MIT License (MIT). Please see License File for more information.

๐Ÿ”ง Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of laravel-pagination-merge with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0|^8.1|^8.2
illuminate/support Version ~5|^6|^7|^8|^9|^10|^11.0
illuminate/pagination Version ~5|^6|^7|^8|^9|^10|^11.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 aneeskhan47/laravel-pagination-merge contains the following files

Loading the files please wait ....