marlonbasten/ohdear-croncheck-laravel 问题修复 & 功能扩展

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

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

marlonbasten/ohdear-croncheck-laravel

最新稳定版本:v2.0.0

Composer 安装命令:

composer require marlonbasten/ohdear-croncheck-laravel

包简介

Easily integrate cronjob checks from OhDear into your Laravel application.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Monitoring cronjobs with OhDear made easy! Just register your commands in a service provider.

public function boot(): void
{
    OhDearCron::register(TestCommand::class, 'id');
}

Installation

You can install the package via composer:

composer require marlonbasten/ohdear-croncheck-laravel

You can publish the config file with:

php artisan vendor:publish --tag="ohdear-croncheck-laravel-config"

This is the contents of the published config file:

return [
    // If false, cronjobs will always be sent to OhDear
    'only_in_prod' => true,
    // The ping URL for OhDear (https://ohdear.app/docs/features/cron-job-monitoring#php)
    'ohdear_url' => 'https://ping.ohdear.app',
];

Usage

Register the command you want to monitor with OhDear in any service provider using the Facade.

public function boot(): void
{
    \Marlonbasten\OhdearCroncheckLaravel\Facades\OhDearCron::register(TestCommand::class, 'id');
}

The id is the last part of your ping URL you get on OhDear.

img.png

That's it! Now every time the command runs, OhDear will receive a ping.
The package will also send the exit code and the runtime of the command to OhDear.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

This package was inspired by Freek Van der Herten

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固