PHPackages                             aternos/etcd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. aternos/etcd

ActiveLibrary[HTTP &amp; Networking](/categories/http)

aternos/etcd
============

PHP gRPC client for etcd v3

v1.5.0(3y ago)259.4k↓38.2%6[2 issues](https://github.com/aternosorg/php-etcd/issues)[1 PRs](https://github.com/aternosorg/php-etcd/pulls)2MITPHPPHP &gt;=7.1

Since Jan 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/aternosorg/php-etcd)[ Packagist](https://packagist.org/packages/aternos/etcd)[ RSS](/packages/aternos-etcd/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (17)Used By (2)

PHP gRPC client for etcd v3
===========================

[](#php-grpc-client-for-etcd-v3)

Full and/or simplified client for [etcd](https://github.com/etcd-io/etcd) v3 using [gRPC](https://github.com/grpc/grpc/).

### About

[](#about)

This library includes the generated gRPC classes from the `.proto` files in the etcd repository in the [grpc](grpc) folder. You can use the (more complicated) gRPC classes or the simpler [`Client`](src/Client.php)class for basic functionality. There are currently only a few basic functions implemented in the Client class, so feel free to add more functions when you implement them with the gRPC classes and create a pull request.

### Installation

[](#installation)

The gRPC PHP extension has to be installed to use this library. See [this](https://github.com/grpc/grpc/tree/master/src/php) for a full explanation.

```
sudo apt install php php-dev php-pear
sudo pecl install grpc
```

And add `extension=grpc.so` to the `php.ini` file.

The `protobuf` extension is not necessary, because it's a dependency of this library, which you can install using

```
composer require aternos/etcd
```

### Usage

[](#usage)

#### Client class

[](#client-class)

```
