Download the PHP package seblhaire/bootstrappaginator without Composer

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

Bootstrap Paginator

By Sébastien L'haire

A Laravel library to generate paginations with Bootstrap 4 or 5 CSS Framework.

This library provides two different paginators:

Both paginators can be used in same page.

Demo site available here.

Installation

  1. composer require seblhaire/bootstrappaginator

  2. Optionally install Boostrap using npm install bootstrap

  3. Composer will automatically link the package with Laravel. But you still can explicitely add provider and facade to your config/app.php:

  4. Publish package (optionally).

  5. Add a translation to Laravel existing pagination.php translation file in directory resources/lang/en/. Simply add key:

Usage

Declare Facade in Controller headers:

Your route must contain a parameter for page in last segment:

Eg: you can have a route https://test.site/issues/9, route https://test.site/issues should display page 1. Controller method can be declared like this:

If you include paginator alpha, last segment will be an initial:

Eg: you can have a route https://test.site/authors/D would display all authors beginning with D. https://test.site/authors will display all items. Controller method can be declared like this:

You can combine both paginators in a single page. In this case, initial will be in the before last position and page parameter in the last position:

In this case https://test.site/authors displays first page of all items. https://test.site/authors/all/3 will display third page of all items. https://test.site/authors/D will display first page of items beginning with D. And https://test.site/authors/D/3 will display third page of items beginning with D. Initialize your method with default parameters and use them in your code:

In this example, numeric paginator will contain current initial in the link urls. Alpha paginator's links will direct web page users to the first page with the initial they contain. Then in the view, print your paginator like this:

{!! $paginator->render() !!}

or simply

{!! $paginator !!}

Parameters

Config files

Config files are available, either in package directory in vendor\seblhaire/bootstrappaginator or in your app config directory if you publish config.

Questions? Contributions?

Feel free to send feature requests or merge request to the author or simply to ask questions.


All versions of bootstrappaginator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/http Version ^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 seblhaire/bootstrappaginator contains the following files

Loading the files please wait ....