Port of the jsonrpcsmd library for Laravel 4.2