Yii Framework Forum: [Extension] JSON-RPC implementation for Yii2 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Extension] JSON-RPC implementation for Yii2 JSON-RPC server based on method-to-action translation. Rate Topic: -----

#1 User is offline   George Shestayev 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 09-January 18

Posted 07 March 2018 - 07:11 AM

Hey all!
I've written an extension which will make Yii2 a JSON-RPC server. I didn't like existing ones because they don't really use Yii2 power.
Mine extension would translate "method" to Yii's action using routing system and then call that action and wrap results into JSON-RPC compatible response. Therefor you can use all Yii features such as filters, behaviors, etc.
Besides that I wrote an extension to be fully compliant with JSON-RPC spec. And yes, it supports multiple requests in one call.
Please find it on GitHub, name is georgique/yii2-jsonrpc. Rules here on the forum are a bit repressive, so I can't post a link to it. :(
Note that it's still in development, and I am actually posting it here hoping somebody gets interested and might do some testing and provide feedback.
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,225
  • Joined: 17-January 09
  • Location:Russia

Posted 10 March 2018 - 04:30 PM

https://github.com/g...ue/yii2-jsonrpc
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   George Shestayev 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 09-January 18

Posted 11 March 2018 - 06:31 PM

View Postsamdark, on 10 March 2018 - 04:30 PM, said:

...

Thanks!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users