katsana/minions-polyfill

Minions Component Server (Polyfill) using Laravel Routing
42,832 2
Install
composer require katsana/minions-polyfill
Latest Version:v1.2.1
PHP:^8.0
Laravel:6 · 7 · 8
License:MIT
Last Updated:Jan 21, 2026
Links: GitHub  ·  Packagist
Maintainer: crynobone

Minions Component Server (Polyfill) using Laravel Routing

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

Installation

Minions can be installed via composer:

composer require "katsana/minions-polyfill=^1.0"

Please ensure that you already install Minions and go through the installation and setup documentation.

Usages

To use Laravel Routing to handle RPC request you just need to setup the URI and TLD domain to handle the request. To do this this package has already add a macro to Illuminate\Routing\Router.

It is recommended that you add the command to App\Providers\RouteServiceProvider::map() method.

<?php

namespace App\Providers;

use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;

class RouteServiceProvider extends ServiceProvider
{
    // ...
    
    /**
     * Define your route model bindings, pattern filters, etc.
     *
     * @return void
     */
    public function boot()
    {
        Route::minion('rpc');

        parent::boot();
    }

    // ...
}

You can also set it to a specific domain using the following:

Route::minion('/', 'rpc.your-domain');

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released Laravel License
v1.2.1 ^6.0 || ^7.0 || ^8.0 MIT
v1.2.0 ^6.0 || ^7.0 MIT
v1.1.0 ^6.0 || ^7.0 MIT
v1.0.2 ^6.0 || ^7.0 MIT
v1.0.1 ^6.0 || ^7.0 MIT