Skip to content

[READ-ONLY] Elasticsearch client for Hyperf.

License

Notifications You must be signed in to change notification settings

friendsofhyperf/elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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