{"id":21544332,"url":"https://github.com/railken/lara-eye","last_synced_at":"2025-04-10T04:41:26.650Z","repository":{"id":62532830,"uuid":"131293901","full_name":"railken/lara-eye","owner":"railken","description":"Filter your Query\\Builder using a structured query language","archived":false,"fork":false,"pushed_at":"2024-04-04T22:39:20.000Z","size":138,"stargazers_count":38,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-23T09:58:45.634Z","etag":null,"topics":["api","composer","eloquent","filter","laravel","library","php","query","search"],"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/railken.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-27T12:31:11.000Z","updated_at":"2024-03-27T16:32:28.000Z","dependencies_parsed_at":"2024-06-20T21:58:11.510Z","dependency_job_id":"9fa84d94-1de4-493d-894f-07742c4ca3c1","html_url":"https://github.com/railken/lara-eye","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2Flara-eye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2Flara-eye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2Flara-eye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2Flara-eye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railken","download_url":"https://codeload.github.com/railken/lara-eye/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248160770,"owners_count":21057549,"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":["api","composer","eloquent","filter","laravel","library","php","query","search"],"created_at":"2024-11-24T05:17:42.052Z","updated_at":"2025-04-10T04:41:26.602Z","avatar_url":"https://github.com/railken.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Eye\n\n[![Actions Status](https://github.com/railken/lara-eye/workflows/Test/badge.svg)](https://github.com/railken/lara-eye/actions)\n\nFilter your ```Illuminate\\DataBase\\Query\\Builder``` using a structured query language.\nThis can be pretty usefull when you're building an API and you don't want to waste hours of your time creating predefined filters that may change at any time.\n\n## Requirements\n\nPHP 8.1 or later.\n\n## Usage\n\n```php\n\nuse Railken\\LaraEye\\Filter;\nuse Railken\\SQ\\Exceptions\\QuerySyntaxException;\nuse App\\Foo;\n\n\n// Instance of Illuminate\\DataBase\\Query\\Builder\n$query = (new Foo())-\u003enewQuery()-\u003egetQuery();\n\n$str_filter = \"x \u003e 5 or y \u003c z\";\n\n$filter = new Filter(\"foo\", ['id', 'x', 'y', 'z', 'created_at', 'updated_at']);\n\ntry {\n    $filter-\u003ebuild($query, $str_filter);\n} catch (QuerySyntaxException $e) {\n    // handle syntax error\n}\n\n\n```\n\nSyntax [here](https://github.com/railken/search-query)\n\n## Composer\n\nYou can install it via [Composer](https://getcomposer.org/) by typing the following command:\n\n```bash\ncomposer require railken/lara-eye\n```\n\n## Demo\n\n![demo](https://raw.githubusercontent.com/railken/lara-eye/master/demo/demo.gif)\n\n## License\n\nOpen-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailken%2Flara-eye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailken%2Flara-eye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailken%2Flara-eye/lists"}