Download the PHP package mrsems/paginator-php without Composer
On this page you can find all versions of the php package mrsems/paginator-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package paginator-php
PHP Array Paginator
Paginator-PHP est une classe PHP simple permettant de paginer des tableaux de données sans dépendre d'un framework.
✔️ Pagination basée sur $_GET['page']
✔️ Informations sur la pagination (page actuelle, total pages...)
✔️ Facile à intégrer dans n'importe quel projet PHP
composer require mrsems/paginator-php
exemple d'utilisation
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Test Paginator PHP</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-8">
<h1 class="text-2xl font-bold mb-4">Liste paginée</h1>
<ul class="list-disc pl-5 mb-4">
<li><?= htmlspecialchars($item) ?></li>
</ul>
<div class="flex gap-2">
<a href="?page=<?= $result['currentPage'] - 1 ?>" class="px-4 py-2 bg-blue-500 text-white rounded">Précédent</a>
<a href="?page=<?= $result['currentPage'] + 1 ?>" class="px-4 py-2 bg-blue-500 text-white rounded">Suivant</a>
</div>
</body>
</html>All versions of paginator-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package mrsems/paginator-php contains the following files
Loading the files please wait ...