sergeyfast / eazy-jsonrpc Goto Github PK
View Code? Open in Web Editor NEWPHP JSON-RPC 2.0 Server/Client Implementation
License: MIT License
PHP JSON-RPC 2.0 Server/Client Implementation
License: MIT License
Parameter $returnType is hardcoded to empty string so "new $returnType" results in fatal error "Class "" not found"
Can be fixed with
$result = $returnType ? $mapper->map( $call->Result, new $returnType ) : $call->Result;
Is this project Open Source? If you don't add a license, it's not Open Source even if the code is public. By default, everything is copyrighted (all right reserved) even if not explicitly written. That's why there are licenses that circumvent that.
I am connecting to a JSON-RPC service and used the generator to create my Client. This API requires a header for Authorization, but I don't believe I am able to edit the property $ClientOptions or the $client directly on the BaseJsonRpcClient. Both properties are private, so I can not adjust the generated client to pass the additional headers that are needed. Should $ClientOptions be a protected variable instead of private? Perhaps even make the Guzzle Client a protected variable, so settings can be adjusted as needed? Or another way would be to pass an optional parameter to the BaseJsonRpcClient constructor to use as the ClientOptions for the Guzzle Client. My apologizes if I missed an obvious answer to this problem. But I can't see a way to pass custom headers to the Guzzle Client.
Hi!
After upgrading PHP to version 8 I've started getting an error:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, stdClass given in /app/vendor/sergeyfast/eazy-jsonrpc/src/EazyJsonRpc/BaseJsonRpcServer.php on line 244
I was able to make it work just replacing array_key_exists
call to the following one:
!property_exists( $params, $param->getName() )
Thank you ๐
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.