Download the PHP package linkorb/etcd-php without Composer
On this page you can find all versions of the php package linkorb/etcd-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download linkorb/etcd-php
More information about linkorb/etcd-php
Files in linkorb/etcd-php
Package etcd-php
Short Description Etcd client library for PHP
License MIT
Homepage http://www.github.com/linkorb/etcd-php
Informations about the package etcd-php
Etcd client library for PHP
etcd is a distributed configuration system, part of the coreos project.
This repository provides a client library for etcd for PHP applications.
Installing and running etcd
`
Brought to you by the LinkORB Engineering team
Check out our other projects at linkorb.com/engineering.
Btw, we're hiring!
Installation
Usage
The client
Instantiate the client
Instantiate the client with custom Guzzle Client
Use the client instance
The command line tool
Setting Key Values
Set a value on the /foo/bar
key:
Set a value on the /foo/bar
key with a value that expires in 60 seconds:
Create a new key /foo/bar
, only if the key did not previously exist:
Create a new dir /fooDir
, only if the key did not previously exist:
Update an existing key /foo/bar
, only if the key already existed:
Create or update a directory called /mydir
:
Retrieving a key value
Get the current value for a single key in the local etcd node:
Listing a directory
Explore the keyspace using the ls
command
Add -recursive
to recursively list subdirectories encountered.
Deleting a key
Delete a key:
Delete an empty directory or a key-value pair
Recursively delete a key and all child keys:
Export node
Watching for changes
Watch for only the next change on a key:
All versions of etcd-php with dependencies
symfony/console Version ^2.4 || ^3.0 || ^4.0
symfony/filesystem Version ^2.4 || ^3.0 || ^4.0
guzzlehttp/guzzle Version ^6.3