1. download from git or clone
2. extract file download
3. copy file CustomPagination.php to folder `applications/libraries`
load libraries in your controller.
public function __construct()
{
parent::__construct();
$this->load->library('custompagination');
}
$baseUrl = 'backoffice/books';
$totalRows = 100;
$data = [
'pagination' => $this->custompagination->render($baseUrl, $totalRows)
];
$this->load->view("Backoffice/Books/index.php", $data);
<p>
<?php echo $pagination; ?>
</p>