{"id":22959984,"url":"https://github.com/phpinnacle/elastics","last_synced_at":"2025-04-02T02:41:04.499Z","repository":{"id":57040490,"uuid":"124740162","full_name":"phpinnacle/elastics","owner":"phpinnacle","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-27T16:00:31.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T17:37:26.511Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpinnacle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-11T09:08:34.000Z","updated_at":"2020-08-26T20:37:52.000Z","dependencies_parsed_at":"2022-08-23T22:00:10.687Z","dependency_job_id":null,"html_url":"https://github.com/phpinnacle/elastics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpinnacle%2Felastics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpinnacle%2Felastics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpinnacle%2Felastics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpinnacle%2Felastics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpinnacle","download_url":"https://codeload.github.com/phpinnacle/elastics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246746626,"owners_count":20827060,"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":[],"created_at":"2024-12-14T18:29:54.902Z","updated_at":"2025-04-02T02:41:04.481Z","avatar_url":"https://github.com/phpinnacle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPinnacle Elastics\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nThis is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what\nPSRs you support to avoid any confusion with users and contributors.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require phpinnacle/elastics\n```\n\n## Basic Usage\n\n```php\n\u003c?php\n\nuse PHPinnacle\\Elastics\\Search;\nuse PHPinnacle\\Elastics\\Query;\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$query = new Query\\Boolean();\n$query\n    -\u003emust(new Query\\Match('name', 'Alex'))\n    -\u003emustNot(\n        new Query\\Term('gender', 'male'),\n        new Query\\Terms('eye_color', ['blue', 'green'])\n    )\n    -\u003efilter(new Query\\Range('age', 21))\n;\n\n$search = Search::match($query);\n$search\n    -\u003eorder('name', 'asc')\n    -\u003elimit(50)\n;\n\n$client = curl_init('127.0.0.1:9200/users/_search?pretty');\n\ncurl_setopt_array($client, [\n    CURLOPT_RETURNTRANSFER =\u003e true,\n    CURLOPT_POSTFIELDS     =\u003e (string) $search,\n    CURLOPT_HTTPHEADER     =\u003e ['Content-Type: application/json'],\n]);\n\n$result = curl_exec($client);\n\necho $result;\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker.\n\n## Credits\n\n- [PHPinnacle][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/phpinnacle/elastics.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/phpinnacle/elastics.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/phpinnacle/elastics.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/phpinnacle/elastics.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/phpinnacle/elastics\n[link-scrutinizer]: https://scrutinizer-ci.com/g/phpinnacle/elastics/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/phpinnacle/elastics\n[link-downloads]: https://packagist.org/packages/phpinnacle/elastics\n[link-author]: https://github.com/phpinnacle\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpinnacle%2Felastics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpinnacle%2Felastics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpinnacle%2Felastics/lists"}