unifact/connector
最新稳定版本:v1.3.1
Composer 安装命令:
composer require unifact/connector
包简介
Unifact connector
README 文档
README
Intro
Unifact Connector package for Laravel 5.2
Installation
composer require unifact/connector
-
Add
Unifact\Connector\ConnectorServiceProviderto app providers config -
Run
php artisan vendor:publish --provider="Unifact\Connector\ConnectorServiceProvider"to copy the assets, config and migrations. -
Run
php artisan migrate, there are three tables the system uses. -
Configure the following .env settings:
CONNECTOR_DOMAIN: The full domain the connector routes are available on (default: 'connector.local.dev')CONNECTOR_PREFIX: Prefix so we don't get route collisions with app routes (default: '/cnr')CONNECTOR_USER: Username to access the connectorCONNECTOR_PASS: Password to access the connector (must be hashed with sha1)CONNECTOR_QUEUE_HIGH: Name of the high priority queueCONNECTOR_QUEUE_LOW: Name of the low priority queueCONNECTOR_QUEUE_HIGH_THRESHOLD: The threshold needed for a job to become high priority
The connector needs (need is a big word, but it's smart to do it like this) both a subdomain and a routing prefix in order to work without conflict with your application.
-
Look at the
/config/connector.phpfile and optionally turn on Hipchat logging (various other logging methods are available and configurable). -
Turn your browser to the configured url and try to log in.
How to use
- Resolve
JobProviderContractthrough the service container to insert connector jobs. - Listen for the
ConnectorRegisterEventto register JobHandlers and/or CronHandlers.
Run php artisan connector:run to perform the cron event and handle all connector jobs.
统计信息
- 总下载量: 331
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-23