// Include the class require_once('path/to/SetPager.php'); // Initialize the pager with required options $pager = new SetPager(array( 'total_records' => $total_records, 'records_per_page' => $records_per_page, 'page_num' => $page_num, 'url_base' => '/page', )); // Generate the pager links echo $pager->get_links();
// Include the class require_once('path/to/SetPager.php'); // Initialize the pager with required options $pager = new SetPager(array( 'total_records' => $total_records, 'records_per_page' => $records_per_page, 'page_num' => $page_num, 'url_base' => '/page', 'link_class' => 'btn btn-primary', 'active_class' => 'active', )); // Generate the pager links echo $pager->get_links();This example sets up a pagination with custom CSS class styles for the links and the active page. Package Library: This class seems to be a standalone or custom developed package/library and is not part of any existing commonly used PHP package such as Symfony or Laravel.