{"id":26478886,"url":"https://github.com/julekgwa/php_paginator","last_synced_at":"2026-04-19T03:31:39.297Z","repository":{"id":35121319,"uuid":"39315575","full_name":"julekgwa/php_paginator","owner":"julekgwa","description":"PHP and MySQL pagination.","archived":false,"fork":false,"pushed_at":"2017-05-09T20:58:01.000Z","size":187,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T01:26:14.859Z","etag":null,"topics":["mysql-php-pagination","pagination","php-pagination"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julekgwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-18T23:09:40.000Z","updated_at":"2017-04-24T10:41:22.000Z","dependencies_parsed_at":"2022-09-17T08:23:03.643Z","dependency_job_id":null,"html_url":"https://github.com/julekgwa/php_paginator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/julekgwa/php_paginator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julekgwa%2Fphp_paginator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julekgwa%2Fphp_paginator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julekgwa%2Fphp_paginator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julekgwa%2Fphp_paginator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julekgwa","download_url":"https://codeload.github.com/julekgwa/php_paginator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julekgwa%2Fphp_paginator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql-php-pagination","pagination","php-pagination"],"created_at":"2025-03-20T01:22:46.386Z","updated_at":"2026-04-19T03:31:39.282Z","avatar_url":"https://github.com/julekgwa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Simple PHP Paginator \n\nPHP paginator is a script that can generate pagination links + next/previous page links. It gives you full control of how you want your pagination to appear and how many pagination links, to appear per page. \n\n##### Table of Contents\n\n  * [Features](#features)\n  * [Requirements](#requirements)\n  * [How to use](#how-to-use)\n  * [Creating pagination](#creating-pagination)\n  * [Screenshots](#screenshots)\n\n## Features\n- Generate pagination links.\n- Create pagination files, by using PHP copy function.\n- Customizable with your own CSS or any CSS framework.\n\n## Requirements\nPHP 5+\n\n## How to use\n\nInclude `Paginator.php` in your files.\n```PHP\n\u003c?php\n\nrequire_once 'Paginator.php';\n\n$Paginator = new Paginator('mysql:host=localhost;dbname=ng_app', 'root', '000000');\n$Paginator-\u003esetItemLimitPerPage(4);\n$Paginator-\u003esetTable('comments');\n$Paginator-\u003ecreatePages();\n$Paginator-\u003esetCurrentPageClass('active');\n$Paginator-\u003esetUrlPattern('/php_paginator/');\n$numPrevPage = 4;\n$numNextPage = 4;\n$paginationCssClass = 'pagination';\n\n?\u003e\n```\n\n\n## Creating pagination\n  ```HTML\n  \u003cdiv class=\"text-center\"\u003e\n  \u003c!-- our pagination  using Bootstrap--\u003e\n  \u003chr\u003e\n    \u003c?php\n        $Paginator-\u003epagination($Paginator-\u003egetPageNumber(), $numPrevPage, $numNextPage, $paginationCssClass);\n    ?\u003e\n   \u003c/div\n   ```\n## Screenshots\n![](pagination.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulekgwa%2Fphp_paginator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulekgwa%2Fphp_paginator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulekgwa%2Fphp_paginator/lists"}