Download the PHP package katsana/minions without Composer

On this page you can find all versions of the php package katsana/minions. 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 minions

JSON-RPC Communication for Laravel

tests Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

Installation

Minions can be installed via composer:

Setup

The package will automatically register a service provider.

Next, you need to publish the Minions configuration file:

Setting Project ID

Each project need to have a unique Project ID to be used to identify authorized RPC requests. You can set the project ID on config/minions.php configuration file:

Configure Projects

Next, you need to setup the project clients and servers information:

Security

token is used as an Authorization bearer token header for the request and signature is used to sign the message sent via the request.

For projects running on private intranet you may skip setting up token and signature by setting the value to null.

Request Handler

To receive a request from a client, first we need to create a request handler on the server, for example let say we want to create a Add request.

You can use php artisan minions:make MathAdd to generate the base stub file App\JsonRpc\MathAdd.

Registering the route

To register the route, all you need to do is add the request handler to routes/rpc.php:

You can run the following command to stub routes/rpc.php:

Checking authorization

You can check whether the project is authorized to use the request by overriding the authorize() method.

Validating the request

You can validate the request using Laravel Validation. Minions also introduce Minions\Http\ValidatesRequests trait which you can import and expose validate() and validateWith() method. e.g:

Making a Request

To make a request, you can create the following code:

Running the RPC Server

To run Minions RPC Server, you have two options:

Please go through each option documentation for installation and usages guide.


All versions of minions with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
clue/buzz-react Version ^2.5
datto/json-rpc Version ^6.0
illuminate/database Version ^6.0 || ^7.0 || ^8.0
illuminate/pipeline Version ^6.0 || ^7.0 || ^8.0
illuminate/validation Version ^6.0 || ^7.0 || ^8.0
laravie/codex-security Version ^1.0
laravie/stream Version ^1.3
nyholm/psr7 Version ^1.2
orchestra/canvas-core Version ^4.7 || ^5.0 || ^6.0
react/event-loop Version ^1.1
react/promise Version ^2.5
symfony/psr-http-message-bridge Version ^1.3 || ^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 katsana/minions contains the following files

Loading the files please wait ....