Download the PHP package gtt/thrift-generator without Composer

On this page you can find all versions of the php package gtt/thrift-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 thrift-generator

ThriftGenerator

Generates apache thrift definition files based on PHP classes signature.

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Latest Unstable Version License

What's the purpose?

The main apache thrift's concept is to make possible cross-language services development that can interact with each other. In order to product code that can be invoked remotely using thrift framework you need firstly provide all target classes definitions in special thrift files and then generate service thrift code. But imagine you already have some server classes and you want to provide some RPC API for them using thrift. In this case manual filling of thrift files for those server classes seems to be annoying. ThriftGenerator uses class reflection and doc-blocks to introspect class signatures and generate corresponding thrift files automatically for you. This thrift files would be used then to generate thrift service stuff that can be used on server side with the help of original thrift compiler.

Requirements

ThriftGenerator works with PHP classes and requires PHP 5.3 or higher and provides thrift definition files can be used by thrift compiler 0.9.2 and higher.

Installation

ThriftGenerator can be installed with composer quite easy:

You also can use ThriftGenerator as a standalone library:

Usage

ThriftGenerator has handy OOP interface:

See also functional test cases for more details.

Restrictions

Sinсe ThriftGenerator statically introspects PHP class signature only with use of Reflection functionality so it have no chance to detect and define in thrift IDL any classes that is used internally in your classes (in most cases that is not described in class doc-blocks as input params, return values or exceptions can be thrown).

Roadmap

It would be nice to have some features that are not implemented yet:

  1. Support of relative complex type/exception names (not FQCN's) in doc blocks.
  2. Thrift service inheritance support.
  3. Comments in generated thrift files.
  4. Custom doc-block's implementation to support some thrift-related options that can not be reflected from PHP method signatures or doc blocks (container types wide support, one-way calls, enum's and etc).
  5. Thrift versioning support.

All versions of thrift-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zend-code Version ~2.3
zendframework/zend-server Version ~2.3
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 gtt/thrift-generator contains the following files

Loading the files please wait ....