{"id":33967981,"url":"https://github.com/catalyzecomm/laravel-filterable","last_synced_at":"2026-04-24T17:02:38.994Z","repository":{"id":62500053,"uuid":"297788666","full_name":"catalyzecomm/laravel-filterable","owner":"catalyzecomm","description":"This package allows you to easily handle database filtering through query strings.","archived":false,"fork":false,"pushed_at":"2021-06-07T06:47:47.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T12:40:53.065Z","etag":null,"topics":["catalyzecomm","filterable","laravel"],"latest_commit_sha":null,"homepage":"","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/catalyzecomm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-22T22:35:54.000Z","updated_at":"2021-06-07T06:47:49.000Z","dependencies_parsed_at":"2022-11-02T09:46:37.129Z","dependency_job_id":null,"html_url":"https://github.com/catalyzecomm/laravel-filterable","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/catalyzecomm/laravel-filterable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyzecomm%2Flaravel-filterable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyzecomm%2Flaravel-filterable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyzecomm%2Flaravel-filterable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyzecomm%2Flaravel-filterable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catalyzecomm","download_url":"https://codeload.github.com/catalyzecomm/laravel-filterable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyzecomm%2Flaravel-filterable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["catalyzecomm","filterable","laravel"],"created_at":"2025-12-12T23:57:08.172Z","updated_at":"2026-04-24T17:02:38.950Z","avatar_url":"https://github.com/catalyzecomm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Filterable\n\n[![StyleCI](https://github.styleci.io/repos/297788666/shield?style=flat\u0026branch=master)](https://github.styleci.io/repos/297788666?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/catalyzecomm/laravel-filterable/v)](//packagist.org/packages/catalyzecomm/laravel-filterable)\n[![License](https://poser.pugx.org/catalyzecomm/laravel-filterable/license)](//packagist.org/packages/catalyzecomm/laravel-filterable)\n[![Total Downloads](https://poser.pugx.org/catalyzecomm/laravel-filterable/downloads)](//packagist.org/packages/catalyzecomm/laravel-filterable)\n\nThis package allows you to easily handle database filtering through query strings. \n\n## Installation\n\nYou can install the package via composer:\n\nfor Laravel 6.x \u0026 7.x\n\n```bash\ncomposer require catalyzecomm/laravel-filterable\n```\n\n## Introduction\n\nIntroduction here\n\n### Usage\nDefine your model (use `Catalyzecomm\\Filterable` Trait and define `$allowedFilters`)\n```php\n    use Catalyzecomm\\Filterable;\n\n    ...\n\n    /**\n     * Define an array of filter that allowed to use for this model\n     * `key` as class name and `value` as field name(s)\n     *\n     * @var array\n     */\n    protected static $allowedFilters = [\n        Catalyzecomm\\Filters\\Sort::class =\u003e 'created_at',\n        Catalyzecomm\\Filters\\Keywords::class =\u003e 'name,email',\n    ];\n```\n\nUse on your controller\n```php\n    $users = User::filterPaginate();\n```\nor \n```php\n    $users = User::filterAll();\n```\n\n## Credits\n\n- [catalyzecomm](https://github.com/catalyzecomm)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyzecomm%2Flaravel-filterable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalyzecomm%2Flaravel-filterable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyzecomm%2Flaravel-filterable/lists"}