一个基于php的thrift服务端和客户端的demo
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Thrift
gen-php
README.md
client.php
server.php
shared.thrift
tutorial.thrift

README.md

php thrift server

一个简单的php thrift client和server示例。 主要参考自thrift官网样例参考,集成了各个模块,使得执行更加简单,利用php -S使得server的显示和thrift调用更加清楚。

在根目录下执行命令即可执行。

server执行方法:php -S localhost:9999

client执行方法:php client.php

A simple demo of php thrift client with server. Reference from thrift, we simplify the module and use php -S , you can simply use it, making understanding thrift more clear.

Do commands under the root document of repo.

For Server : php -S localhost:9999

For Client: php client.php