{"id":19210693,"url":"https://github.com/mhndev/searchit-client","last_synced_at":"2026-05-14T08:43:41.696Z","repository":{"id":72234262,"uuid":"111528284","full_name":"mhndev/searchit-client","owner":"mhndev","description":"php sdk for search server (http search server powered by elasticsearch)","archived":false,"fork":false,"pushed_at":"2017-11-26T08:30:27.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T07:31:50.403Z","etag":null,"topics":["elasticsearch","sdk-php","search","search-engine"],"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/mhndev.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}},"created_at":"2017-11-21T09:35:41.000Z","updated_at":"2023-03-05T04:52:00.000Z","dependencies_parsed_at":"2023-02-23T05:30:27.650Z","dependency_job_id":null,"html_url":"https://github.com/mhndev/searchit-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhndev/searchit-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fsearchit-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fsearchit-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fsearchit-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fsearchit-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhndev","download_url":"https://codeload.github.com/mhndev/searchit-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fsearchit-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284360420,"owners_count":26991377,"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","status":"online","status_checked_at":"2025-11-14T02:00:06.101Z","response_time":56,"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":["elasticsearch","sdk-php","search","search-engine"],"created_at":"2024-11-09T13:36:54.422Z","updated_at":"2025-11-14T08:01:46.619Z","avatar_url":"https://github.com/mhndev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Searchit Client (SDK)\n\n#### Work in progress\n###### Don't use it in production (is not production ready)\n\n#### Sample usage :\n\n```php\n\n\nnamespace mhndev\\searchitClient\n{\n\n    use GuzzleHttp\\Client;\n\n    /**\n     * Class HttpGuzzle\n     * @package mhndev\\searchitClient\n     */\n    class HttpGuzzle implements iHttpConnection\n    {\n\n        /**\n         * @var Client\n         */\n        protected $guzzleClient;\n\n        /**\n         * HttpGuzzle constructor.\n         * @param Client $guzzleClient\n         */\n        function __construct(Client $guzzleClient)\n        {\n            $this-\u003eguzzleClient = $guzzleClient;\n        }\n\n        /**\n         * @param string $uri\n         * @param string $method\n         * @param array $options\n         * @return mixed\n         */\n        function request(string $uri, $method = 'GET', array $options)\n        {\n            return $this-\u003eguzzleClient-\u003erequest($method, $uri, $options);\n        }\n    }\n}\n\n\n\nnamespace\n{\n\n    use GuzzleHttp\\Client as GuzzleClient;\n    use mhndev\\searchitClient\\Client;\n    use mhndev\\searchitClient\\Driver\\HttpDriver;\n    use mhndev\\searchitClient\\HttpGuzzle;\n\n    $httpConnection = new HttpGuzzle(new GuzzleClient());\n\n    $httpDriver = new HttpDriver($httpConnection);\n\n    $searchitClient = (new Client())-\u003esetDriver($httpDriver);\n\n    $list = $searchitClient-\u003elistSearchableTypes();\n\n\n    var_dump($list);die();\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhndev%2Fsearchit-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhndev%2Fsearchit-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhndev%2Fsearchit-client/lists"}