larva/easybaidu-composer

The composer plugin for EasyBaidu

Installs: 14

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:composer-plugin

1.0.0 2021-06-21 22:17 UTC

This package is auto-updated.

Last update: 2024-02-22 04:08:36 UTC


README

EasyBaidu Composer Plugin

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads License

Usage

Set the type to be easybaidu-extension in your package composer.json file:

{
    "name": "your/package",
    "type": "easybaidu-extension"
}

Specify server observer classes in the extra section:

{
    "name": "your/package",
    "type": "easybaidu-extension",
    "extra": {
        "observers": [
            "Acme\\Observers\\Handler"
        ]
    }
}

Examples

Server Delegation

目前仅支持 Laravel

  1. config/app.php 中添加 EasyBaiduComposer\Laravel\ServiceProvider::class

  2. 本地项目.env 文件中添加如下配置:

EASYBAIDU_DELEGATION=true # false 则不启用
EASYBAIDU_DELEGATION_HOST=https://example.com # 线上域名