Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Health Laravel Package

spatie/laravel-health

Monitor your Laravel app’s health by registering checks (disk space, etc.) with warning/fail thresholds. Get notified via mail or Slack when checks degrade, and extend with custom checks for proactive alerting.

View on GitHub
Deep Wiki
Context7

title: Security advisories weight: 20

This check will check if the PHP packages installed in your project have known security vulnerabilities. This check works using Packagist's security vulnerability API.

Installation

You must first install the check using composer

composer require spatie/security-advisories-health-check

Usage

To start using the check, you must register the SecurityAdvisoriesCheck class.

use Spatie\Health\Facades\Health;
use Spatie\SecurityAdvisoriesHealthCheck\SecurityAdvisoriesCheck;

Health::checks([
    SecurityAdvisoriesCheck::new(),
]);

The check will pass if there are no security advisories for the packages currently installed in your project.

If security advisories are found, the check will fail. The failure message will contain the names of package that have security issues. In the meta key of history item of the check, the full vulnerability advisories will be saved. Alternatively, you can run composer audit in the root directory of your application to see a list of security issues.

Ignoring packages

To ignore certain packages, you can use the ignorePackage method.

Health::checks([
    SecurityAdvisoriesCheck::new()->ignorePackage('spatie/laravel-backup'),
]);

You can ignore multiple packages in one go with the ignoredPackages method.

Health::checks([
    SecurityAdvisoriesCheck::new()->ignoredPackages([
       'spatie/laravel-backup',
       'spatie/laravel-medialibrary',
   ]),
]);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport