Download the PHP package stefangabos/zebra_pagination without Composer

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

zebrajs

Zebra Pagination  Tweet

A generic, Twitter Bootstrap compatible, pagination library that automatically generates navigation links

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads License

A generic, Twitter Bootstrap compatible (versions 3, 4 and 5), pagination script that automatically generates navigation links as well as next/previous page links, given the total number of records and the number of records to be shown per page. Useful for breaking large sets of data into smaller chunks, reducing network traffic and, at the same time, improving readability, aesthetics and usability.

Adheres to pagination best practices (provides large clickable areas, doesn't use underlines, the selected page is clearly highlighted, page links are spaced out, provides "previous page" and "next page" links, provides "first page" and "last page" links - as outlined in an article by Faruk Ates from 2007, which can now be found here, can generate links both in natural as well as in reverse order, can be easily, localized, supports different positions for next/previous page buttons, supports page propagation via GET or via URL rewriting, is SEO-friendly, and the appearance is easily customizable through CSS.

Please note that this is a generic pagination script, meaning that it does not display any records and it does not have any dependencies on database connections or SQL queries, making it very flexible! It is up to the developer to fetch the actual data and display it based on the information returned by this pagination script. The advantage is that it can be used to paginate over records coming from any source like arrays or databases.

The code is heavily commented and generates no warnings/errors/notices when PHP's error reporting level is set to E_ALL.

Features

:notebook_with_decorative_cover: Documentation

Check out the awesome documentation!

🎂 Support the development of this project

Your support means a lot and it keeps me motivated to keep working on open source projects.
If you like this project please ⭐ it by clicking on the star button at the top of the page.
If you are feeling generous, you can buy me a coffee by donating through PayPal, or you can become a sponsor.
Either way - Thank you! 🎉

Star it on GitHub Donate

Requirements

PHP 5+

Installation

You can install Zebra Pagination via Composer

Or you can install it manually by downloading the latest version, unpacking it, and then including it in your project

How to use

Make sure that in the of your page you have

If you want to preserve hashes in the URL, also include the JavaScript file – simply including it will suffice; (jQuery needs to also be loaded before loading this file)

Paginate data from an array:

The PHP

Would result is something like

Zebra_Pagination, default layout

You can set the navigation links' position to the left or to the right of the pagination links using the navigation_position() method:

Zebra_Pagination, position next/previous buttons on the left

Zebra_Pagination, position next/previous buttons on the right

Labels for "Previous" and "Next" links can be changed with the labels() method:

Zebra_Pagination, using labels for navigating to next/previous pages

You can also have HTML markup as labels making it easy to include font icons like the ones from Font Awesome

Zebra_Pagination, using icons for navigating to next/previous pages

Using condensed navigation where only links to first, last, next and previous pages are available. Useful when there isn't enough space for a full blown pagination.

Zebra_Pagination, condensed navigation

Using extra condensed navigation where only links next and previous pages are available. Useful when there isn't enough space for a full blown pagination.

Zebra_Pagination, condensed navigation

Paginate data from MySQL:

Paginate data from MySQL in reverse order:

Would result in something like

Zebra_Pagination


All versions of zebra_pagination with dependencies

PHP Build Version
Package Version
Requires php Version >=5
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 stefangabos/zebra_pagination contains the following files

Loading the files please wait ....