{"id":28386136,"url":"https://github.com/scullwm/inboxsearch","last_synced_at":"2025-07-18T03:35:30.692Z","repository":{"id":62541413,"uuid":"54067119","full_name":"ScullWM/InboxSearch","owner":"ScullWM","description":"Search operators library for your project like Gmail search","archived":false,"fork":false,"pushed_at":"2016-09-30T06:58:40.000Z","size":23,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-30T16:37:04.768Z","etag":null,"topics":["filter","gmail-inbox","search-engine","search-operator","searching","searching-algorithms","searchquery"],"latest_commit_sha":null,"homepage":"","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/ScullWM.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-03-16T21:18:10.000Z","updated_at":"2022-07-25T15:48:31.000Z","dependencies_parsed_at":"2022-11-02T16:16:04.156Z","dependency_job_id":null,"html_url":"https://github.com/ScullWM/InboxSearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ScullWM/InboxSearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScullWM%2FInboxSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScullWM%2FInboxSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScullWM%2FInboxSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScullWM%2FInboxSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScullWM","download_url":"https://codeload.github.com/ScullWM/InboxSearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScullWM%2FInboxSearch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262076587,"owners_count":23255037,"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":["filter","gmail-inbox","search-engine","search-operator","searching","searching-algorithms","searchquery"],"created_at":"2025-05-30T13:11:02.443Z","updated_at":"2025-06-26T13:31:40.011Z","avatar_url":"https://github.com/ScullWM.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"InboxSearch\n===========\nSearch operators library.\nSee more from Gmail: https://support.google.com/mail/answer/7190?hl=en\n\n## Supported operators\n - Filename (string)\n - Size (integer - convert string in bytes)\n - Has (string)\n - From (string)\n - To (string)\n - Subject (string)\n - Label (string)\n - Delivered To (string)\n - After (\\DateTime)\n - Before (\\DateTime)\n - Older (\\DateTime)\n - Newer (\\DateTime)\n - In (string)\n\n\n## How to use\n\n```php\n$term = 'from:thomas@scullwm.com forum';\n$factory = new InboxSearchFactory($term);\n\n//  return InboxSearchInterface\n$inboxSearch = $factory-\u003eprocess();\n\n$from    = $inboxSearch-\u003egetFrom(); // thomas@scullwm.com\n$keyword = $inboxSearch-\u003egetKeyword(); // array('from' =\u003e 'forum')\n\n$fromKeyword = $inboxSearch-\u003egetKeywordFor(InboxSearchInterface::FILTER_FROM); // forum\n```\n\n\n## Create your own filter\nFilter must implement `FilterInterface`.\nThen register the filter in your factory instance\n```php\n\n$factory = new InboxSearchFactory($term);\n\n$myFilterParserFqcn = 'Swm\\InboxSearch\\FilterModel\\MyCustomFilter';\n$factory-\u003eaddFilterParser($myFilterParserFqcn);\n\n```\n\n## Tests\n\n```shell\nphp composer install --dev\nbin/atoum -d tests/units\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscullwm%2Finboxsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscullwm%2Finboxsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscullwm%2Finboxsearch/lists"}