Download the PHP package bearsunday/thrift without Composer
On this page you can find all versions of the php package bearsunday/thrift. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package thrift
BEAR.Sunday Thrift
A package that allows high-speed access to BEAR.Sunday resources from multiple languages using Thrift and Swoole.
Features
- BEAR.Sunday resources can be utilized across various languages and frameworks
- Seamless access to remote BEAR.Sunday apps from the local BEAR.Sunday app
- Access resources regardless of language (currently supports PHP, Go, Python, Ruby and BEAR.Sunday)
- Fast access with Thrift/Swoole, compared to HTTP
- Can call resources from older versions of BEAR.Sunday apps
- Operates independently of an HTTP server
Installation
Usage
Server-side (PHP:BEAR.Sunday)
bin/serve.php
Start Thrift server
Client-side
BEAR.Sunday
Import Thrift App in the module.
Thrift apps available just like the 'self' app. See more.
PHP
Go
Python
Ruby
Note: The URI can be a schema as well as a path. Instead of /user?id=1
, you can specify page://self/user?id=1
to access both app and page resources.
As you can see, it's easy to access BEAR.Sunday resources from other languages. Resources become assets that transcend applications and can be accessed quickly.
Demo
Build go & python and start the thrift server.
Run the go and pythonclient with another terminal.
Note: Swoole, Thrift, go and python must be installed to run the above scripts. Straight forward if you're installing with brew.
All versions of thrift with dependencies
apache/thrift Version ^0.19.0
doctrine/coding-standard Version ^12.0
squizlabs/php_codesniffer Version ^3.5
bear/resource Version ^1.20
bear/package Version ^1.10