{"id":20236876,"url":"https://github.com/imerr/laravel-query-table","last_synced_at":"2026-03-03T20:07:28.169Z","repository":{"id":177158317,"uuid":"660003074","full_name":"imerr/laravel-query-table","owner":"imerr","description":"Laravel plugin for displaying query results as a table with built-in filtering/sorting/pagination","archived":false,"fork":false,"pushed_at":"2025-05-17T13:48:05.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T19:31:41.051Z","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/imerr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-29T03:13:18.000Z","updated_at":"2025-05-17T13:48:09.000Z","dependencies_parsed_at":"2023-07-05T04:20:06.782Z","dependency_job_id":null,"html_url":"https://github.com/imerr/laravel-query-table","commit_stats":null,"previous_names":["imerr/laravel-query-table"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imerr/laravel-query-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerr%2Flaravel-query-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerr%2Flaravel-query-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerr%2Flaravel-query-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerr%2Flaravel-query-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imerr","download_url":"https://codeload.github.com/imerr/laravel-query-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerr%2Flaravel-query-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30057842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-14T08:23:39.407Z","updated_at":"2026-03-03T20:07:28.132Z","avatar_url":"https://github.com/imerr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QueryTable\nA laravel plugin for displaying query results as a table with built-in filtering/sorting/pagination.\nViews use bootstrap and font-awesome, but can be published and modified via `php artisan vendor:publish --provider=\"imer\\QueryTable\\QueryTableProvider\"` command\nWhile this package is still in early stages the api might still change for better usability\n\nExample:\n```php\n\nuse imer\\QueryTable;\nuse imer\\QueryTable\\HtmlString;\n\n// ...\n\n$countries = [\"de\" =\u003e \"Germany\", \"gb\" =\u003e \"United Kingdom\", \"us\" =\u003e \"United States\"];\n$customers = (new QueryTable($request, Customer::query()))\n    -\u003eaddField(\n        (new QueryTable\\Field(\"customer_number\"))\n            -\u003esortable()\n            -\u003efilter(new QueryTable\\TextFilter())\n            -\u003eformatAsLink(function (Customer $r) {\n                return route(\"customer.show\", [\"id\" =\u003e $r-\u003eid]);\n            })\n    )\n    -\u003eaddField(\n        (new QueryTable\\Field(\"company\"))\n            -\u003esortable()\n            -\u003efilter(new QueryTable\\TextFilter())\n    )\n    -\u003eaddField((new QueryTable\\Field(\"name\"))-\u003esortable()-\u003efilter(new QueryTable\\TextFilter()))\n    -\u003eaddField((new QueryTable\\Field(\"email\"))-\u003esortable()-\u003efilter(new QueryTable\\TextFilter()))\n    -\u003eaddField(\n    // Filter by yes/no\n        (new QueryTable\\Field(\"tax_exempt\"))\n            -\u003esortable()\n            -\u003efilter(new QueryTable\\BoolFilter())\n            -\u003eformatter(function ($v) {\n                return $v ? trans(\"misc.yes\") : trans(\"misc.no\");\n            })\n    )\n    -\u003eaddField(\n    // Country field with a dropdown filter\n        (new QueryTable\\Field(\"country\"))\n            -\u003esortable()\n            -\u003efilter(new QueryTable\\DropdownFilter($countries))\n            -\u003eformatter(function ($v) use ($countries) {\n                return $countries[$v] ?? \"n/a\";\n            })\n    )\n    -\u003eaddField((new QueryTable\\ViewField(\"customer._table_actions\"))\n        -\u003enameText(new HtmlString('\u003ca href=\"' . e(route(\"customer.create\")). '\" class=\"btn btn-success\"\u003e\u003ci class=\"fa fa-plus\"\u003e\u003c/i\u003e\u003c/a\u003e')));\n\n// pass $customers to your view and simply output the table:\n// {!! $customers !!}\n```\n\nTurns into: ![preview of rendered table](https://github.com/imerr/laravel-query-table/assets/1426904/4ae52043-d2bf-4882-a995-ce84af3c72e0)\n\nFilter demo: https://github.com/imerr/laravel-query-table/assets/1426904/000197cf-09ff-41bc-acf6-eb01bd1a98e8\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimerr%2Flaravel-query-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimerr%2Flaravel-query-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimerr%2Flaravel-query-table/lists"}