A simple paginator
//Create a paginator
$totalPages = 5;
$paginator = new \Studiow\Paginator\Paginator($totalPages);
echo (string) $paginator;
If you find yourself rendering large pieces of HTML within a PHP script, you'd probably be better of using a template system.