{"id":24780441,"url":"https://github.com/webgriffe/amp-elasticsearch","last_synced_at":"2025-06-27T13:38:31.035Z","repository":{"id":54816215,"uuid":"187502704","full_name":"webgriffe/amp-elasticsearch","owner":"webgriffe","description":"A non-blocking ElasticSearch client for PHP based on Amp.","archived":false,"fork":false,"pushed_at":"2024-11-07T16:14:56.000Z","size":37,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T05:33:10.330Z","etag":null,"topics":["amphp","elasticsearch","php"],"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/webgriffe.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":"2019-05-19T16:42:53.000Z","updated_at":"2025-03-02T14:30:37.000Z","dependencies_parsed_at":"2024-10-28T12:57:35.807Z","dependency_job_id":"9ebdcb0a-59c5-4f63-9f35-02472cafddd8","html_url":"https://github.com/webgriffe/amp-elasticsearch","commit_stats":{"total_commits":44,"total_committers":5,"mean_commits":8.8,"dds":0.09090909090909094,"last_synced_commit":"7e2b8d3e1d064b8f81d33417ac86866231566c6b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/webgriffe/amp-elasticsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/amp-elasticsearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-elasticsearch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262266711,"owners_count":23284747,"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":["amphp","elasticsearch","php"],"created_at":"2025-01-29T10:30:45.929Z","updated_at":"2025-06-27T13:38:31.005Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":["ElasticSearch"],"sub_categories":[],"readme":"# Amp ElasticSearch Client\n\n`webgriffe/amp-elasticsearch` is a non-blocking ElasticSearch client for use with the [`amp`](https://github.com/amphp/amp)\nconcurrency framework.\n\n[![Build](https://github.com/webgriffe/amp-elasticsearch/actions/workflows/build.yml/badge.svg)](https://github.com/webgriffe/amp-elasticsearch/actions/workflows/build.yml)\n\n**Required PHP Version**\n\n- PHP 7.4\n- PHP 8.0\n- PHP 8.1\n- PHP 8.2\n- PHP 8.3\n\n**Installation**\n\n```bash\ncomposer require webgriffe/amp-elasticsearch\n```\n\n**Usage**\n\nJust create a client instance and call its public methods which returns promises:\n\n```php\nLoop::run(function () {\n  $client = new Webgriffe\\AmpElasticsearch\\Client('http://my.elasticsearch.test:9200');\n  yield $this-\u003eclient-\u003ecreateIndex('myindex');\n  $response = yield $this-\u003eclient-\u003eindexDocument('myindex', '', ['testField' =\u003e 'abc']);\n  echo $response['result']; // 'created'\n});\n```\n\nSee other usage examples in the [`tests/Integration/ClientTest.php`](./tests/Integration/ClientTest.php).\n\nAll client methods return an array representation of the ElasticSearch REST API responses in case of sucess or an `Webgriffe\\AmpElasticsearch\\Error` in case of error.\n\n## Security\n\nIf you discover any security related issues, please email [`support@webgriffe.com`](mailto:support@webgriffe.com) instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Famp-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Famp-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Famp-elasticsearch/lists"}