承接 wizcodepl/outdated-packages-health-check 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

wizcodepl/outdated-packages-health-check

最新稳定版本:1.0.4

Composer 安装命令:

composer require wizcodepl/outdated-packages-health-check

包简介

This package contains a Laravel Health check that can report any outdated PHP packages installed in your application using Composer.

README 文档

README

Outdated Packages Health Check

This package contains a Laravel Health check that can report any outdated PHP packages installed in your application using Composer.

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

This package contains a Laravel Health check that can report any outdated PHP packages installed in your application using Composer.

About us

Wizcode builds expandable MVPs with lightning-speed development solutions. We create scalable web platforms, mobile apps, and IoT solutions. Check for more: https://wizcode.pl

Installation

You can install the package via composer:

composer require wizcodepl/outdated-packages-health-check

Usage

use Spatie\Health\Facades\Health;
use WizcodePl\OutdatedPackagesHealthCheck\OutdatedPackagesCheck;

Health::checks([
    OutdatedPackagesCheck::new()
        ->direct()
        ->includeDev()
        ->composerPath('/path/to/composer'),
]);

By default the check warns when ANY package has a newer release (patch / minor / major). On a busy app this is noisy — every patch bump turns the dashboard yellow. To get signal on only the bumps that matter to you, restrict alert levels:

// Alert only on major bumps (1.x.x → 2.0.0). Patch and minor still appear in `meta`,
// but they don't drive the check status.
OutdatedPackagesCheck::new()->onlyMajor();

// Alert on minor and major (e.g. 1.2.x → 1.3.0 or 2.0.0).
OutdatedPackagesCheck::new()->minorAndAbove();

// Or pick the exact set yourself:
OutdatedPackagesCheck::new()->alertOnLevels([
    OutdatedPackagesCheck::LEVEL_MAJOR,
    OutdatedPackagesCheck::LEVEL_MINOR,
]);

Versions that can't be parsed as MAJOR.MINOR.PATCH (e.g. dev-main, prerelease tags with the same numeric core) are bucketed as LEVEL_UNKNOWN and are alerted alongside LEVEL_MAJOR by onlyMajor() and minorAndAbove() — better to alarm wrongly than to silently miss a real upgrade.

The result's meta always contains the full picture, so dashboards can show what's outdated regardless of alerting:

[
    'outdated_total' => 7,
    'outdated_by_level' => ['major' => 1, 'minor' => 2, 'patch' => 4, 'unknown' => 0],
    'alert_levels' => ['major', 'unknown'],
    'alerting_packages' => [
        ['name' => 'vendor/x', 'version' => '1.2.3', 'latest' => '2.0.0', 'level' => 'major'],
    ],
]

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

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固