Download the PHP package eliep/avro-rpc-php-generator without Composer

On this page you can find all versions of the php package eliep/avro-rpc-php-generator. 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 avro-rpc-php-generator

Avro RPC Generator

See Avro for a full documentation on Avro and its usage in PHP.

This library use avro-rpc-php as an implementation of the Avro RPC protocol in php.

Installation

Protocol class Generation

The script is located in your vendor/bin folder:

Required arguments:

Optional argument:

Namespacing

The generate script will respect the namespace defined in your avro protocol. For example, if you have define "my.avro" as your protocol namespace, the script:

Note: If the directory specified by the -o option has a namespace, you can use the option -p to specify it so that the namespace of the generated php class will use it.

The name of the generate class will be protocol name with the Requestor suffix (if your protocol's name is Protocol, the class name will be ProtocolRequestor);

Protocol class Usage

For example, if your protocol is:

you can connect to an Avro RPC Server with

The ProtocolRequestor set a temporary error handler to detect if the socket connection worked. If not, the constructor throw a php Exception.

The ProtocolRequestor class contains one function for each message in your protocol. These functions accept as many argument as defined by the corresponding message.

You can call:

Example

An example is available in example/ folder.


All versions of avro-rpc-php-generator with dependencies

PHP Build Version
Package Version
Requires eliep/avro-rpc-php Version ^1.7.7
docopt/docopt Version 1.0.*
gossi/php-code-generator Version ^0.3.2
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 eliep/avro-rpc-php-generator contains the following files

Loading the files please wait ....