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
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-01