{"id":37232567,"url":"https://github.com/zippoxer/lazysearch-php","last_synced_at":"2026-01-15T03:49:45.892Z","repository":{"id":57091391,"uuid":"126624553","full_name":"zippoxer/lazysearch-php","owner":"zippoxer","description":"A PHP client for full-text search with lazysearch","archived":false,"fork":false,"pushed_at":"2018-03-31T15:24:52.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T13:56:35.857Z","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/zippoxer.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":"2018-03-24T17:42:20.000Z","updated_at":"2018-03-31T15:24:53.000Z","dependencies_parsed_at":"2022-08-22T20:40:34.735Z","dependency_job_id":null,"html_url":"https://github.com/zippoxer/lazysearch-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zippoxer/lazysearch-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zippoxer%2Flazysearch-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zippoxer%2Flazysearch-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zippoxer%2Flazysearch-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zippoxer%2Flazysearch-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zippoxer","download_url":"https://codeload.github.com/zippoxer/lazysearch-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zippoxer%2Flazysearch-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28442357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"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":"2026-01-15T03:49:45.267Z","updated_at":"2026-01-15T03:49:45.872Z","avatar_url":"https://github.com/zippoxer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full-Text Search for PHP with [marco](http://marco.zippo.io)\nEmpower your PHP application with powerful full-text search.\n\n## Installation\n\n```\ncomposer require zippoxer/marco\n```\n\n## Usage\n\nInsert a document to folder `people`:\n\n```php\n$client = new Marco\\Client('your-api-key');\n\n$client-\u003epeople-\u003eput('1', [\n    'name' =\u003e 'David',\n    'age' =\u003e 35,\n    'about' =\u003e 'I like pizza.'\n]);\n```\n\nSearch it:\n\n```php\n$results = $client-\u003epeople-\u003esearch('pizza');\n\nforeach($results['hits'] as $person) {\n    echo $person-\u003ename;\n}\n```\n\nAdvanced search:\n\n```php\n$results = $client-\u003epeople-\u003esearch('piz', [\n    // Leave empty for standard query. Other options are: 'prefix', 'phrase' and 'advanced'.\n    'queryType' =\u003e 'prefix',\n\n    // Which field in the documents to search? Default is '*' (all fields).\n    'field' =\u003e 'name',\n\n    // Which fields from the documents to return? Default is '*' (all fields).\n    'fields' =\u003e 'name,age,country',\n\n    // How to sort the results? default is by _score descending (most relevant first).\n    // Examples:\n    // * 'age' sorts by field 'age' ascending\n    // * '-age' sorts by field 'age' descending (reverse order)\n    // * '-age,register_date' sorts by field 'age' descending,\n    //   then by field 'register_date'\n    'sort' =\u003e 'age',\n\n    // Allow a specified number of typos in the search query. Default is 0 (no typos allowed).\n    'typos' =\u003e 1,\n\n    // Highlight matched words with HTML \u003cmark\u003e tags. Default is false.\n    'highlight' =\u003e true,\n\n    // Pagination.\n    'page' =\u003e 2, // Default is 1.\n    'hitsPerPage' =\u003e 50 // Default is 10.\n]);\n\nforeach($results['hits'] as $person) {\n    echo $person-\u003ename;\n}\n```\n\nFor more details, see documentation at [lazysearch.zippo.io](http://lazysearch.zippo.io)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzippoxer%2Flazysearch-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzippoxer%2Flazysearch-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzippoxer%2Flazysearch-php/lists"}