Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Framework Blog:
Implement JSON-RPC with zend-json-server
Jan 11, 2017 @ 18:47:01

On the Zend Framework blog there's a new post showing you how to implement a JSON-RPC interface with zend-json-server, a package from the Zend Framework 2 set of components.

zend-json-server provides a JSON-RPC implementation. JSON-RPC is similar to XML-RPC or SOAP in that it implements a Remote Procedure Call server at a single URI using a predictable calling semantic. Like each of these other protocols, it provides the ability to introspect the server in order to determine what calls are available, what arguments each call expects, and the expected return value(s); JSON-RPC implements this via a Service Mapping Description (SMD), which is usually available via an HTTP GET request to the server.

The article provides a basic example of the creation of a service that handles GET requests and gives back a service mapping description. Building on this, they show how to integrate it into an application that makes use of the zend-mvc structure. They implement a "JsonRpcController" using the same methods as before. Finally they show an example of performing JSON-RPC handling in middleware, outputting the same output as before based on the data in the $response variable.

tagged: zendframework jsonrpc zendjsonserver example controller middleware tutorial

Link: https://framework.zend.com/blog/2017-01-10-zend-json-server.html

CodeForest.net:
Android JSON-RPC client and PHP Zend Framework server
Jul 13, 2011 @ 15:14:36

In a recent post to CodeForest Luka Peharda shows you how to create a JSON-RPC frontend for your application based on the Zend Framework.

XML-RPC rules, but the amount of data it generates is its big disadvantage. This is where JSON-RPC steps in. Data it generates is significally smaller, but this isn’t suprising as JSON is known as fat free XML.This articles is based on my earlier Android XML-RPC article. Its PHP code and Zend Framework setup will be used so you should go through it if you haven't earlier (at least as far as XMLRPC Android client chapter).

You need to have some of the base code from the previous article in place to follow along, but if you're experienced with Zend Framework, keeping up won't be a problem. He uses this JSON-RPC client that was made for use with a ZF application and creates a basic jsonAction to handle the request. He then uses this Android JSON-RPC library to connect from the Android application and fetch some basic data.

tagged: zendframework android jsonrpc xmlrpc client library tutorial

Link:

Stubbles Blog:
Stubbles 0.2.0 released
Jul 04, 2007 @ 15:32:00

The Stubbles group has released the latest version of their PHP framework - version 0.2.0 of Stubbles:

The Stubbles team is proud to announce the release of Stubbles 0.2.0. This release is another alpha version and contains the basic MVC structure as well as support for JSON-RPC, utility packages for working with datespans, URLs and a cache package. Additionally the build system has been enhanced and a lot of bugs have been fixed. For a complete list of changes see the changelog. The release can be downloaded from our downloads page.

Other enhancements in this new version include updates to the build system, the inclusion of more examples, changes to several packages including the JSON-RPC, Util and XML functionality.

tagged: stubbles framework mvc jsonrpc datespan url changelog stubbles framework mvc jsonrpc datespan url changelog

Link:

Stubbles Blog:
Stubbles 0.2.0 released
Jul 04, 2007 @ 15:32:00

The Stubbles group has released the latest version of their PHP framework - version 0.2.0 of Stubbles:

The Stubbles team is proud to announce the release of Stubbles 0.2.0. This release is another alpha version and contains the basic MVC structure as well as support for JSON-RPC, utility packages for working with datespans, URLs and a cache package. Additionally the build system has been enhanced and a lot of bugs have been fixed. For a complete list of changes see the changelog. The release can be downloaded from our downloads page.

Other enhancements in this new version include updates to the build system, the inclusion of more examples, changes to several packages including the JSON-RPC, Util and XML functionality.

tagged: stubbles framework mvc jsonrpc datespan url changelog stubbles framework mvc jsonrpc datespan url changelog

Link:


Trending Topics: