{"id":19199964,"url":"https://github.com/fusic/flexlimitpagination","last_synced_at":"2026-06-19T17:33:26.531Z","repository":{"id":62508085,"uuid":"75803425","full_name":"fusic/flexlimitpagination","owner":"fusic","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-05T13:42:14.000Z","size":22,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T05:25:31.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fusic.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":"2016-12-07T05:43:35.000Z","updated_at":"2016-12-13T05:25:39.000Z","dependencies_parsed_at":"2022-11-02T12:32:09.655Z","dependency_job_id":null,"html_url":"https://github.com/fusic/flexlimitpagination","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/fusic/flexlimitpagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fflexlimitpagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fflexlimitpagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fflexlimitpagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fflexlimitpagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusic","download_url":"https://codeload.github.com/fusic/flexlimitpagination/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fflexlimitpagination/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34541986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":[],"created_at":"2024-11-09T12:29:44.272Z","updated_at":"2026-06-19T17:33:26.507Z","avatar_url":"https://github.com/fusic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flexpager plugin for CakePHP\nmaintainer: @gorogoroyasu\n\n## Installation\n\n```\ncomposer require fusic/Flexpager\n```\n\n## discription\n\nthis plugin will help you to create the candidates of pagination.\nex)\n\nnormal paginator\n```\n\u003c prev  1 2 3 4 5 next \u003e\n```\nthis paginator\n```\n\u003c prev 1 2 3 4 5 next\u003e 10 20 100\n```\nthe \"10\",\"20\",\"100\" means that the use of your application can change the paginate limit flexibly.\n\n## settings\n\nfirst of all, you have to load the component.\nand, you have to write \"listCandidates\" in `public $paginate`\n\nin controller\n```\n\npublic $paginate = [\n    'listCandidates' = [10, 20, 100],\n    // and more configs.\n];\npublic function initialize()\n{\n    parent::initialize();\n    $this-\u003eloadComponent('Flexpager.Flexpager');\n}\n```\n\nafter that, you have to add this line to AppView.php\n\n```\npublic function initialize()\n{\n    parent::initialize();\n    $this-\u003eloadHelper('Flexpager.Flexpaginator');\n}\n```\n\n## usage\n\nin controller (for example in index )\n```\npublic function index()\n{\n    $pages = $this-\u003eFlexpager-\u003epaginate($this-\u003ePages);\n    $this-\u003eset(compact('pages'));\n}\n```\n\nin ctp (for example in index)\n```\n\u003c?= $this-\u003eFlexpaginator-\u003eprev('\u003c '.__('previous')) ?\u003e\n\u003c?= $this-\u003eFlexpaginator-\u003enumbers() ?\u003e\n\u003c?= $this-\u003eFlexpaginator-\u003enext(__('next').' \u003e') ?\u003e\n\u003c?= $this-\u003eFlexpaginator-\u003elimitCandidate() ?\u003e\n```\n\nthe method limitCandidate() will return the list of candidates.\n\nif you want to customize the template,\nyou can use the method below.\n\n```\n\u003c?= $this-\u003eFlexpaginator-\u003esetFlexPagerTemplate('\u003ca class=\"form-control\" href={{url}}\u003e{{content}}\u003c/a\u003e') ?\u003e\n```\n\nthe args of this method have to include '{{url}}' and '{{content}}'.\n\nthe default template is `'\u003ca href={{url}}\u003e{{content}}\u003c/a\u003e'`.\n\nplease note that `setFlexPagerTemplate` method should appear before the method `listCandidates`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusic%2Fflexlimitpagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusic%2Fflexlimitpagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusic%2Fflexlimitpagination/lists"}