Download the PHP package alex-qiu/dubbo-php-client without Composer

On this page you can find all versions of the php package alex-qiu/dubbo-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dubbo-php-client

dubbo-php-client

License

the dubbo php client(中文说明往下拉)

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 jsonRPC now.
you can see the example for the dubbo-jsonRPC-demo which i write before.

Notice:

you must start dubbo and zookeeper,register prividers first.

Installation

If you have not installed zookeeper extension for php,then

Maybe occuring an error with "zookeeper support requires libzookeeper" when you install the zookeeper extension,you should install the libzookeeper needed.

Add zookeeper.so to your php.ini(/etc/php5/apache2/php.ini and /etc/php5/cli/php.ini)

Require dubbo-php-client package to your project(composer)

Usage

dubbo-php-client 中文说明

DUBBO是一个分布式服务框架,致力于提供高性能和透明化的RPC远程服务调用方案,是阿里巴巴SOA服务化治理方案的核心框架
这是dubbo的唯一php客户端,目前只支持jsonRPC协议,将来会支持多种协议。你可以查看我之前写的dubbo-jsonRPC-demo例子。

注意:

使用之前你必须安装和启动dubbo,zookeeper,注册服务者。

安装

如果你还没安装php的zookeeper扩展,需要

有可能安装过程中会报错"zookeeper support requires libzookeeper",说明缺少libzookeeper库,你首先需要安装该库。

添加 zookeeper.so 到你的php.ini(/etc/php5/apache2/php.ini和/etc/php5/cli/php.ini)
添加以下这行

按Composer规范使用dubbo-php-client

调用样例-直接类调用:

Laravel组件模式安装

config/app.php的

providers数组中增加:

aliases别名数组中增加:

然后命令行发布一下系统基本配置文件dubbo_cli.php到config路径:

基本安装配置完成,相关的配置在config('dubbo_cli.default')中设置,具体参考配置文件

Laravel中的使用:

单实例方式(配置读取config('dubbo_cli.default')):

多实例的方式(配置读取config('dubbo_cli.connections.xxx')):


All versions of dubbo-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-zookeeper Version *
ext-sockets Version *
alex-qiu/flax Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alex-qiu/dubbo-php-client contains the following files

Loading the files please wait ....