PHP code example of mazanax / paginator

1. Go to this page and download the library: Download mazanax/paginator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mazanax / paginator example snippets




$pagination = new Pagination(['separator' => '|', 'on_page' => 5, 'section_size' => 5]);
$pagination->getPages(4, 100); // will returns [1, 2, 3, 4, 5, '|', 20]