Download the PHP package dscmall/laravel-json-rpc without Composer

On this page you can find all versions of the php package dscmall/laravel-json-rpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-json-rpc

logo

JSON-RPC 2.0

Version PHP Version Build Status Coverage Downloads count License

JSON-RPC 2.0 is a remote procedure call protocol encoded in JSON. It is a very simple protocol, defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered out of order.

Install

Require this package with composer using the following command:

Installed composer is required (how to install composer).

You need to fix the major version of package.

Usage example

Create routes

Register actions for your methods in ./routes/web.php using the facade RpcRouter:

This package already contains a simple controller implementation, which you can expand it or take it only as an example.

Add new route for RpcController:

Don't forget about to load RPC routes if you want to specify routes not in the file ./routes/web.php

Create RPC controller

Create a new controller containing procedures to be called by JSON request:

Send RPC-request

Events

When the Kernel@handle method is called, some events are fired:

Event class Description
ErroredRequestDetectedEvent Detected not valid request from stack
RequestHandledEvent Means the remote method was successfully called
RequestHandledExceptionEvent An exception was thrown while executing the request

If necessary, you can create a Listener on this event and display received messages for debug.

The EventServiceProvider included with your Laravel application provides a convenient place to register all of your application's event listeners. data.

ChangeLog

Release date Commits since latest release

Changes log can be found here.

Support

Issues Issues

If you will find any package errors, please, make an issue in current repository.

License

This is open-sourced software licensed under the MIT License.


All versions of laravel-json-rpc with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
illuminate/contracts Version ~6.0 || ~7.0 || ~8.0
illuminate/support Version ~6.0 || ~7.0 || ~8.0
illuminate/http Version ~6.0 || ~7.0 || ~8.0
illuminate/routing Version ~6.0 || ~7.0 || ~8.0
tarampampam/wrappers-php Version ^1.4 || ~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dscmall/laravel-json-rpc contains the following files

Loading the files please wait ....