PHPackages                             lornewang/idiot - 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. [API Development](/categories/api)
4. /
5. lornewang/idiot

ActiveLibrary[API Development](/categories/api)

lornewang/idiot
===============

PHP Dubbo Client in Zookeeper

2516516PHP

Since Nov 30Pushed 7y ago2 watchersCompare

[ Source](https://github.com/lornewang/idiot)[ Packagist](https://packagist.org/packages/lornewang/idiot)[ RSS](/packages/lornewang-idiot/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Idiot
=====

[](#idiot)

[![Total Downloads](https://camo.githubusercontent.com/81f84690f2023a9c9d51289f234a5205221237b923250f1b1a506f9a27a88d70/68747470733a2f2f706f7365722e707567782e6f72672f6c6f726e6577616e672f6964696f742f646f776e6c6f616473)](https://packagist.org/packages/lornewang/idiot)[![Latest Stable Version](https://camo.githubusercontent.com/309b57af6f8cfc4e64dd717a75246241cdc781d3e6bb47af9d743a3609e03625/68747470733a2f2f706f7365722e707567782e6f72672f6c6f726e6577616e672f6964696f742f762f737461626c65)](https://packagist.org/packages/lornewang/idiot)[![Latest Unstable Version](https://camo.githubusercontent.com/35aaaee137473b95f81c40a4498abed50d79da0a4a211a5ec48d2d2a227e0bb8/68747470733a2f2f706f7365722e707567782e6f72672f6c6f726e6577616e672f6964696f742f762f756e737461626c65)](https://packagist.org/packages/lornewang/idiot)[![License](https://camo.githubusercontent.com/e94e795801babe77ab46d8520a105363693aa89b4d6d03b80a300003d304dbee/68747470733a2f2f706f7365722e707567782e6f72672f6c6f726e6577616e672f6964696f742f6c6963656e7365)](https://packagist.org/packages/lornewang/idiot)

Dubbo is a distributed service framework empowers applications with service import/export capability with high performance RPC.

This is only dubbo php clinet implementation. It's only support Hessian now.

You must start dubbo and zookeeper, register prividers first.

Requirement
-----------

[](#requirement)

If you have not installed [zookeeper extension](http://pecl.php.net/package/zookeeper) for php, then

### MacOS

[](#macos)

```
$ brew install php56-zookeeper
```

### Linux

[](#linux)

```
$ sudo apt-get install php-pear php5-dev make
$ sudo pecl install zookeeper
```

Maybe occuring an error with "zookeeper support requires libzookeeper" when you install the zookeeper extension, you should install the libzookeeper needed, And add **zookeeper.so** to your **php.ini**

```
$ cd ${YOUR_ZOOKEEPER_HOME_DIR}/src/c/
$ ./configure && make && sudo make install
```

### Windows

[](#windows)

```
Not currently supported, But you can through the source code compiled to a DLL
```

Installation
------------

[](#installation)

Install the latest version with

```
$ composer require lornewang/idiot
```

Usage
-----

[](#usage)

```
