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
Requires
- php: >=7.0
- composer-plugin-api: ^1.0 || ^2.0
Requires (Dev)
- composer/composer: ^1.0 || ^2.0
- phpunit/phpunit: ^6.5 || ^7.0
This package is auto-updated.
Last update: 2024-12-22 05:59:03 UTC
README
EasyBaidu Composer Plugin
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
-
在
config/app.php
中添加EasyBaiduComposer\Laravel\ServiceProvider::class
-
在本地项目的
.env
文件中添加如下配置:
EASYBAIDU_DELEGATION=true # false 则不启用
EASYBAIDU_DELEGATION_HOST=https://example.com # 线上域名