{"id":15292263,"url":"https://github.com/palmtreephp/wp-pagination","last_synced_at":"2025-07-25T20:31:48.909Z","repository":{"id":57035269,"uuid":"109146005","full_name":"palmtreephp/wp-pagination","owner":"palmtreephp","description":":palm_tree: WordPress pagination component for Palmtree PHP","archived":false,"fork":false,"pushed_at":"2022-05-30T10:33:54.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T02:58:29.960Z","etag":null,"topics":["bootstrap","composer-package","pagination","php","wordpress","wordpress-pagination-component"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palmtreephp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-01T15:05:28.000Z","updated_at":"2022-05-30T10:33:57.000Z","dependencies_parsed_at":"2022-08-23T20:50:46.787Z","dependency_job_id":null,"html_url":"https://github.com/palmtreephp/wp-pagination","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palmtreephp","download_url":"https://codeload.github.com/palmtreephp/wp-pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227614682,"owners_count":17793949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bootstrap","composer-package","pagination","php","wordpress","wordpress-pagination-component"],"created_at":"2024-09-30T16:17:08.357Z","updated_at":"2024-12-01T19:08:45.135Z","avatar_url":"https://github.com/palmtreephp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Palmtree WordPress Pagination\n\nWordPress pagination component for Palmtree PHP\n\nGenerates pagination for the main WP_Query or any query provided and outputs with Bootstrap v4 classes.\n\n## Requirements\n* PHP \u003e= 7.1\n\n## Installation\n\nUse composer to add the package to your dependencies:\n```bash\ncomposer require palmtree/wp-pagination\n```\n\n## Usage\n\n#### Basic\n```php\n\u003c?php\n$pagination = new \\Palmtree\\WordPress\\Pagination\\Pagination();\n\n// Get Bootstrap formatted pagination\necho $pagination-\u003egetHtml();\n\n// __toString() is also implemented, which implicitly calls getHtml()\necho $pagination;\n\n// Or get an array of unstyled links\n$links = $pagination-\u003egetLinks();\n\n```\n\n#### Advanced\n\n```php\n\u003c?php\nuse Palmtree\\WordPress\\Pagination\\Pagination;\n\n$query = new \\WP_Query();\n\n$pagination = new Pagination();\n$pagination-\u003esetQuery($query);\n$pagination\n    -\u003eaddArg('prev_text', 'Previous')\n    -\u003eaddArg('next_text', 'Next');\n```\n\n## License\n\nReleased under the [MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmtreephp%2Fwp-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalmtreephp%2Fwp-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmtreephp%2Fwp-pagination/lists"}