What's the bare minimum of a pagination in PHP/MySQLi? I have searched online and have tried to learn how to do a pagination but all the examples are huge, so I was wondering if what's the minimum so I can start there and then work my way into understanding them.

Places I have attempted (examples not all that I looked at); <https://github.com/BenGriffiths/pdo-mysqli-pagination> ; <http://bluedogwebservices.com/php-pagination-with-mysqli/> ; 

The first one was extremely long (seemingly) but it made sense in parts to me, the second one was shorter but made less sense to me, I haven't though of looking for video tutorials yet so I am going to search for those too.