PHP code example of swooder / simple-pagination
1. Go to this page and download the library: Download swooder/simple-pagination 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/ */
swooder / simple-pagination example snippets
'providers' => [
...
Swooder\SimplePagination\SimplePaginationServiceProvider::class
]
// origin use case in grid
$grid = new Grid(new User());
//now replace Grid to SimpleGird
$grid = new SimpleGrid(new User());
//if you need the defalut paginator
$grid->simplePaginate(false);