Download the PHP package didweb/paginator without Composer

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

Paginator :gb:

Pager for listings in Prestashop.

Objective

It is a bit of code to be able to create pages in the Prestashop Administration modules.

Example of Use

Our code must be able to generate a parameter that contains the page number. In this example it is called "page".

Example of use:

With this code we initialize the pagination creation process and obtain an array with parameters.

Explanation of this code:

We pass the parameters to our Smarty template:

We have to send the set of parameters in this case: $ paginator and the name of the parameter must be called as required: paginator.

The result of the listing is in: $paginator ['result']. In this case we pass it separately or we can collect it within the template.

How to use it in the template:

In the template following with this example, we print the results that we passed to it by the parameter list_items with a {foreach} and call the template that will print the page with an include.

Sample sample in file.tpl:

Installation

To be able to install it, a composer.json file is created like this:

The important part of the example is the require: *"didweb / paginator ":"1.0."**

To run it manually from your console:


Paginator :de:

Pager für Einträge in Prestashop.

Ziel

Es ist ein wenig Code, um Seiten in den Prestashop-Administrationsmodulen erstellen zu können.

Anwendungsbeispiel

Unser Code muss in der Lage sein, einen Parameter zu generieren, der die Seitennummer enthält. In diesem Beispiel heißt es "page".

Anwendungsbeispiel:

Mit diesem Code initialisieren wir den Paginierungserstellungsprozess und erhalten ein Array mit Parametern.

Erklärung dieses Codes:

Wir müssen in diesem Fall den Parametersatz senden: $paginator und der Name des Parameters muss wie erforderlich aufgerufen werden: paginator.

Das Ergebnis der Auflistung ist: $paginator ['result']. In diesem Fall übergeben wir es separat oder wir können es innerhalb der Vorlage sammeln.

Wie man es in der Vorlage verwendet:

In der Vorlage, die diesem Beispiel folgt, drucken wir die Ergebnisse, die wir an den Parameter list_items übergeben haben, mit einem {foreach} und rufen die Vorlage auf, die die Seite mit einem include druckt.

Beispielbeispiel in file.tpl:

Installation

Um es zu installieren, wird eine composer.json-Datei wie folgt erstellt:

Der wichtige Teil des Beispiels ist das require: *"didweb / paginator ":"1.0."**

Um es manuell von Ihrer Konsole aus zu starten:


Paginator :es:

Paginador para listados en Prestashop.

Objetivo

Es un poco de código para poder crear paginaciones en los módulos de Administración de Prestashop.

Ejemplo de Uso

Nuestro código ha de poder generar un parámetro que contenga el número de página. En este ejemplo se llama "page".

Ejemplo de uso:

Con este código inicializamos el proceso de creación de paginación y obtenemos un array con parámetros.

Explicación de éste código:

Pasamos los parámetros a nuestra plantilla de Smarty:

Tenemos que enviar el conjunto de parámetros en este caso: $paginator y el nombre del parámetro se ha de llamar de forma obligatoria: paginator.

El resultado del listado lo tenemos en: $paginator['result']. En este caso lo pasamos separado o bien lo podemos recoger dentro de la plantilla.

Cómo utilizarlo en la plantilla:

En la plantilla siguiendo con este ejemplo, imprimimos los resultados que le pasamos por el parámetro list_items con un {foreach} y llamamos a la plantilla que imprimirá la paginación con un include.

Muestra de ejemplo en archivo.tpl :

Instalación

Para poder instalarlo se crea un archivo composer.json como este:

La parte importante del ejemplo es el require: *"didweb/paginator": "1.0."**

Para ejecutarlo de forma manual desde tu consola:


All versions of paginator with dependencies

PHP Build Version
Package Version
No informations.
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 didweb/paginator contains the following files

Loading the files please wait ....