PHPackages                             katsana/minions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. katsana/minions

ActiveLibrary[API Development](/categories/api)

katsana/minions
===============

JSON-RPC Communication for Laravel

v2.6.2(5y ago)790.4k↓33.3%2[2 issues](https://github.com/katsana/minions/issues)4MITPHPPHP &gt;=7.2

Since Mar 15Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/katsana/minions)[ Packagist](https://packagist.org/packages/katsana/minions)[ RSS](/packages/katsana-minions/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (51)Used By (4)

JSON-RPC Communication for Laravel
==================================

[](#json-rpc-communication-for-laravel)

[![tests](https://github.com/katsana/minions/workflows/tests/badge.svg?branch=2.x)](https://github.com/katsana/minions/actions?query=workflow%3Atests+branch%3A2.x)[![Latest Stable Version](https://camo.githubusercontent.com/d1dc34b1a4f636e331963a0f251be27409dc0f30a5281dc2e2ea1dcdf88496f9/68747470733a2f2f706f7365722e707567782e6f72672f6b617473616e612f6d696e696f6e732f762f737461626c65)](https://packagist.org/packages/katsana/minions)[![Total Downloads](https://camo.githubusercontent.com/a75401cb367e8b4dd888aa0062bcb0fce752a8ee57e8c2cada258baf41ac643b/68747470733a2f2f706f7365722e707567782e6f72672f6b617473616e612f6d696e696f6e732f646f776e6c6f616473)](https://packagist.org/packages/katsana/minions)[![Latest Unstable Version](https://camo.githubusercontent.com/eb7e7e346b2b3e7076b7d3625a340c615779b662d9c12bdb2857a5aa152be92b/68747470733a2f2f706f7365722e707567782e6f72672f6b617473616e612f6d696e696f6e732f762f756e737461626c65)](https://packagist.org/packages/katsana/minions)[![License](https://camo.githubusercontent.com/19dfdf3f81a5a26e4a108157df8441e882c0b6db817ed226f9c67a890292b173/68747470733a2f2f706f7365722e707567782e6f72672f6b617473616e612f6d696e696f6e732f6c6963656e7365)](https://packagist.org/packages/katsana/minions)[![Coverage Status](https://camo.githubusercontent.com/26074a55207f2b5a330a353d1dc2daf281a55aea34cb054dbc5eff74ba038ccc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b617473616e612f6d696e696f6e732f62616467652e7376673f6272616e63683d322e78)](https://coveralls.io/github/katsana/minions?branch=2.x)

- [Installation](#installation)
- [Setup](#setup)
    - [Setting Project ID](#setting-project-id)
    - [Configure Projects](#configure-projects)
- [Request Handler](#request-handler)
    - [Registering the route](#registering-the-route)
    - [Checking authorization](#checking-authorization)
    - [Validating the request](#validating-the-request)
- [Making a Request](#making-a-request)
- [Running the RPC Server](#running-the-rpc-server)

Installation
------------

[](#installation)

Minions can be installed via composer:

```
composer require "katsana/minions"

```

Setup
-----

[](#setup)

The package will automatically register a service provider.

Next, you need to publish the Minions configuration file:

```
php artisan vendor:publish --provider="Minions\MinionsServiceProvider" --tag="config"

```

### Setting Project ID

[](#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:

```
