Download the PHP package flagstudio/laravel-paginate without Composer

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

Set of Laravel Builder and Collection macros for pagination

Installation

You can pull in the package via composer:

The package will automatically register itself.

Macros

These macros are used for Eloquent Builder and Collection. The main difference in using pagination on a collection or builder is that builder has not yet perform the database request, i.e. paginate will perform request to get needed amount of records from database. Collection already have all elements and paginate will not perform any database requests.

paginate

Create a LengthAwarePaginator instance from Builder or Collection.

This paginates the contents of $posts with 5 items per page. paginate accept some options, head over to the Laravel docs for an in-depth guide.

paginateFirstDifferent

Create a FirstDifferentLengthAwarePaginator.php instance which extend LengthAwarePaginator from Builder or Collection.

This paginates the contents of $posts with 10 items at first page and 5 items for next pages. paginateFirstDifferent accepts same options as paginate but instead of $perPage accepts two parameters $firstPerPage and $nextPerPage

You can also pass third parameter to get all post from first to current page.

paginateWithPrevious

Create a LengthAwarePaginator instance from Builder or Collection.

This paginates the contents of $posts with 5 items per page but takes all posts from first to current page. At example if current page equals 5 then paginateWithPrevious will return 25 posts (5 per each page). It useful if you want load all posts for current page after reloading page or share link with pagination (https://website.com/posts?page=5). paginateWithPrevious accepts same options as paginate


All versions of laravel-paginate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
laravel/framework Version ^5.6.0|^5.7.0|^5.8.0|^6.0|^7.0|^8.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 flagstudio/laravel-paginate contains the following files

Loading the files please wait ....