Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 999 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 999 Bytes

Elasticsearch

Latest Stable Version Total Downloads License

The Elasticsearch client for Hyperf.

Installation

composer require friendsofhyperf/elasticsearch

Usage

use FriendsOfHyperf\Elasticsearch\ClientBuilderFactory;

class Foo
{
    public function __construct(protected ClientBuilderFactory $clientBuilderFactory)
    {
    }

    public function handle()
    {
        $client = $clientBuilderFactory->create()->build();
        // ...
    }
}

Contact

License

MIT