cleaniquecoders/app-pulse 问题修复 & 功能扩展

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

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

cleaniquecoders/app-pulse

最新稳定版本:1.1.0

Composer 安装命令:

composer require cleaniquecoders/app-pulse

包简介

AppPulse provide a comprehensive, easy-to-use monitoring tool with uptime tracking, SSL certificate checks, and customisable notifications.

README 文档

README

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

AppPulse

A comprehensive Laravel package for monitoring website uptime and SSL certificates with event-driven notifications.

Features

  • Uptime Monitoring - Track website availability and response times
  • SSL Certificate Validation - Monitor certificate expiration
  • Event-Driven Notifications - React to status changes
  • Queue-Based Processing - Efficient background monitoring
  • Historical Data - Store and analyze monitoring results
  • Polymorphic Relationships - Monitor any model in your application

Requirements

  • PHP 8.2, 8.3, or 8.4
  • Laravel 10.x, 11.x, or 12.x

Installation

Install via Composer:

composer require cleaniquecoders/app-pulse

Publish configuration and migrations:

php artisan vendor:publish --tag="app-pulse-config"
php artisan vendor:publish --tag="app-pulse-migrations"
php artisan migrate

Set up Laravel scheduler by adding to your crontab:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Quick Start

Create a monitor:

use CleaniqueCoders\AppPulse\Models\Monitor;

$monitor = Monitor::create([
    'owner_type' => \App\Models\User::class,
    'owner_id' => auth()->id(),
    'url' => 'https://example.com',
    'interval' => 10, // Check every 10 minutes
    'ssl_check' => true,
]);

Run checks manually:

php artisan monitor:check-status

Listen to events:

// In EventServiceProvider
protected $listen = [
    \CleaniqueCoders\AppPulse\Events\MonitorUptimeChanged::class => [
        \App\Listeners\SendUptimeAlert::class,
    ],
    \CleaniqueCoders\AppPulse\Events\SslStatusChanged::class => [
        \App\Listeners\SendSslAlert::class,
    ],
];

Documentation

For complete documentation, visit the docs directory:

Testing

composer test

Changelog

See CHANGELOG for recent changes.

Contributing

Please see CONTRIBUTING for details.

Security

For security concerns, review our security policy.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-17