Skip to content

A Laravel Pulse card to show security vulnerability composer dependencies

License

Notifications You must be signed in to change notification settings

hungthai1401/vulnerable

Repository files navigation

Security Vulnerability Composer Dependencies card for Laravel Pulse

Security Vulnerability Composer Dependencies card for Laravel Pulse

This card will show you security vulnerability composer dependencies.

Installation

Require the package with Composer:

composer require hungthai1401/vulnerable

Register the recorder

Right now, the Composer dependencies audit will only be checked once per day. To run the checks you must add the Vulnerable to the pulse.php file.

return [
    // ...
    
    'recorders' => [
+        \HT\Pulse\Vulnerable\Recorders\Vulnerable::class => [],
    ]
]

You also need to be running the pulse:check command.

Add to your dashboard

To add the card to the Pulse dashboard, you must first publish the vendor view.

Then, you can modify the dashboard.blade.php file:

<x-pulse>
    ...
    
+    <livewire:vulnerable cols='4' rows='2' />
</x-pulse>

Credits

About

A Laravel Pulse card to show security vulnerability composer dependencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published