macedd / laravelrpc Goto Github PK
View Code? Open in Web Editor NEWJson-RPC client/server Providers for Laravel 5.x
License: MIT License
Json-RPC client/server Providers for Laravel 5.x
License: MIT License
in JsonFormatValidator.php line 26
at JsonFormatValidator::validate(null) in ResponseParser.php line 86
at ResponseParser->parse() in Client.php line 192
at Client->sendPayload('{"jsonrpc":"2.0","method":"test","id":1131312290}') in Client.php line 176
at Client->execute('test')
at call_user_func_array(array(object(Client), 'execute'), array('test')) in RpcClientWrapper.php line 81
at RpcClientWrapper->request('test', array()) in RpcClientWrapper.php line 109
at RpcClientWrapper->__call('test', array()) in Facade.php line 213
ErrorException in Client.php line 66: Argument 3 passed to JsonRPC\Client::__construct() must be an instance of JsonRPC\HttpClient, array given, called in /var/www/myapp/vendor/thiagof/laravelrpc/src/RpcClientWrapper.php on line 54 and defined
How do I set the env in which the RPC is called?
With laravel when testing, I use a different db... because of this no items are returned when calling any of the methods registered.
[2018-02-13 09:01:19] testing.DEBUG: RpcClient call
and if I log in the RPC method that's being called (app()->environment()
)
[2018-02-13 09:01:19] local.INFO: local
Is there a way to tell it to use the testing
env?
I keep getting "Unable to establish a connection" error.
Although ssl_verify_peer set to false in config/rpc.php
I believe the code needs to be updated to be compatible with latest changes in fguillot/JsonRPC
Hope you can help soon.
I cannot get this package to install in laravel 5.3 with composer. I get the following error:
composer require thiagof/laravelrpc
Using version ^0.1.4 for thiagof/laravelrpc
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for thiagof/laravelrpc ^0.1.4 -> satisfiable by thiagof/laravelrpc[0.1.4].
- Conclusion: remove laravel/framework v5.3.18
- Conclusion: don't install laravel/framework v5.3.18
- thiagof/laravelrpc 0.1.4 requires illuminate/support >=5.0,<5.2 -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
- don't install illuminate/support v5.1.1|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.13|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.16|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.2|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.20|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.22|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.25|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.28|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.30|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.31|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.41|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.6|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.1.8|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.0|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.22|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.25|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.26|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.28|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.33|don't install laravel/framework v5.3.18
- don't install illuminate/support v5.0.4|don't install laravel/framework v5.3.18
- Installation request for laravel/framework (locked at v5.3.18, required as 5.3.*) -> satisfiable by laravel/framework[v5.3.18].
Installation failed, reverting ./composer.json to its original content.
Server ->
test()); $server->attach(new TestController); $server->execute(); } } '2.0', 'result' => 'abcde', 'id' => 1]; return json_encode($a); } } client -> use Thiagof\LaravelRPC\RpcClientFacade as RpcClient; ``` public function test() { $result = RpcClient::test(); print_r($result); exit; ``` FatalThrowableError in Client.php line 66: Type error: Argument 3 passed to JsonRPC\Client::__construct() must be an instance of JsonRPC\HttpClient, array given, called in /Users/kangseokseo/dev/api/vendor/thiagof/laravelrpc/src/RpcClientWrapper.php on line 54To publish config on Laravel 5.1+ , one must use the following command instead:
php artisan vendor:publish --provider="Thiagof\LaravelRPC\RpcServiceProvider"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.