yar
yar copied to clipboard
Light, concurrent RPC framework for PHP & C
Hi Mr Laruence, I was used Yar for connecting two laravel servers, but now i want to use Yar client on javascript for requesting to Yar server on Laravel, so...
yar 400
Uncaught Yar_Client_Transport_Exception: server responsed non-200 code '400' in /home/mycode/php_rpc/yar_rpc/client.php:6 Stack trace: #0 /home/mycode/php_rpc/yar_rpc/client.php(6): Yar_Client->__call() #1 {main} thrown in /home/mycode/php_rpc/yar_rpc/client.php on line 6
实现了Yar_Client,Yar_Concurrent_Client的主体功能 对Yar_Concurrent_Client使用了curl_multi系列函数支持并行调用及设置回调函数
PHP 8.1.1 Centos 7.9 yar 2.2.1 yaf 3.3.4 $RPCclient = new \Yar_Client(API_CONFIG . "/Brand/base"); $result = $RPCclient->moGetMany('material_brand', [], [], '', $page, $pageSize, 1, 0); 把Brand换成MaterialBrand就报错,可能是文件名和类名的原因 [api.zip](https://github.com/laruence/yar/files/7871678/api.zip)
hi 鸟哥 我看到历史提交记录中yar有http2.0的支持 https://github.com/laruence/yar/commit/14daf8e97a1e9cbd5533715a9236f3039cca2eaa 然后在这个提交记录又 注释了 https://github.com/laruence/yar/commit/a2cd6440f784a583b2ebbb24166a3495d73d7262 我想请教一下, Yar是否有支持http2.0的计划? 注释的原因是? 是否yar http2.0的支持,除了设置libcurl这个参数还需要其他工作?还是出于其他目的考量注释的? 以上,祝好
curl exec failed 'Couldn't connect to server' 鸟哥 Yar Client 调用server的方法就出现这个错误提示,求指导
PHP5.6安装了Yar1.2.5的版本,已经在phpinfo()中显示可用了,可是实际调用不到任何Yar的函数。
### 本次测试基于 swoole 环境运行的 hyperf 框架。 以下相同的代码,在 Laravel 框架中测试一切OK > 1. 示例代码,创建一个Users类 ```php class Users { function Register(){ var_dump("用户注册"); echo '用户注册'; } function Login(){ var_dump("用户登录"); echo '用户登录'; } } ```...
'Yar_Client_Transport_Exception server responsed non-200 code "405" client yar version 1.2.5 server yar version 2.0.4
配置出错
configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/