katsana/minions-polyfill 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

katsana/minions-polyfill

最新稳定版本:v1.2.1

Composer 安装命令:

composer require katsana/minions-polyfill

包简介

Minions Component Server (Polyfill) using Laravel Routing

README 文档

README

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');

统计信息

  • 总下载量: 42.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-24