Month: December 2015

Zend Framework 2 JSON-RPC

Calling a PHP Method from JavaScript

Getting data from the backend database to the browser can be a pain.  Using RESTful interfaces is great but basically requires you to hand craft every call.  What if you could just call your PHP methods directly from JavaScript without having to worry about how that call happened?  With Zend Framework 2 JSON-RPC and a little bit of glue code you can.