halfnine/surveyr-laravel 问题修复 & 功能扩展

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

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

halfnine/surveyr-laravel

最新稳定版本:v0.1.0

Composer 安装命令:

composer require halfnine/surveyr-laravel

包简介

Laravel integration for Surveyr

README 文档

README

Cron schedule monitoring for Laravel. For more info see surveyr.io.

Requirements

  • Laravel 5.7+

Install

Install this package via composer using this command:

composer require halfnine/surveyr-laravel

The package will automatically register itself.

Publish the config/surveyr.php config file with:

php artisan vendor:publish --provider="HalfNine\Surveyr\SurveyrServiceProvider"

Add the Surveyr credentials to your .env file:

SURVEYR_APP_ID=
SURVEYR_API_TOKEN=

If you don't already have one, you can create an API token via the Surveyr settings page. The App ID can be found at the bottom of the relevant app page in Surveyr.

Usage

To set up schedule cron job monitoring, first you need to specify which jobs you want to monitor in app/Console/Kernel.php. To do this simply add the monitor() method to any jobs you want Surveyr to monitor:

$schedule->command('example')
         ->everyMinute()
         ->monitor();

Then, to automatically create the schedule monitors in your Surveyr app, run the following command:

php artisan surveyr:sync-schedule-monitors

This command will attempt to create schedule monitors in Surveyr if they don't already exist. You can safely run this command during your deploy process to make sure that new scheduled jobs are monitored by Surveyr.

Credits

Surveyr is a project by HalfNine.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-01