2017 © Pedro Peláez
 

library laravel-security-checker

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

image

jorijn/laravel-security-checker

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  • Tuesday, January 30, 2018
  • by jorijn
  • Repository
  • 3 Watchers
  • 65 Stars
  • 993 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 4 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Laravel Security Checker

Latest Stable Version Total Downloads License Tests, (*1)

This package provides an effortless way for you to check your local composer.lock against the Security Advisories Database. It can either display the results in your console or email them to you on a scheduled basis. It uses Laravel's markdown system, so it should fit nicely in your styling., (*2)

Screenshot

screenshot-email, (*3)

Installation

Require this package with composer using the following command:, (*4)

composer require jorijn/laravel-security-checker

Configuration

Email

If you want the package to send reports by email, you'll need to specify a recipient., (*5)

Option 1

Add it to your .env file., (*6)

LCS_MAIL_TO="someone@example.net"
Option 2

Publish the configuration file and change it there., (*7)

php artisan vendor:publish --provider="Jorijn\LaravelSecurityChecker\ServiceProvider" --tag="config"

If you want to control on how the email is formatted you can have Laravel export the view for you using:, (*8)

php artisan vendor:publish --provider="Jorijn\LaravelSecurityChecker\ServiceProvider" --tag="views"

By default, the package won't email you when there are no vulnerabilities found. You can change this setting by adding the following entry to your .env file., (*9)

LCS_NOTIFY_WITHOUT_VULNERABILITIES=true

Slack

If you want the package to send the report to a Slack channel, you will need to specify a Slack Webhook in your .env file., (*10)

E.g.:, (*11)

LCS_SLACK_WEBHOOK=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Scheduling

The package exposes a new command for you:, (*12)

php artisan security-check:email

You can hook it up into a regular crontab or add it into the Laravel Scheduler (app/Console/Kernel.php) like this:, (*13)

protected function schedule(Schedule $schedule)
{
    $schedule->command(\Jorijn\LaravelSecurityChecker\Console\SecurityMailCommand::class)
        ->weekly();
}

Running as a command

This package provides a wrapper around the Enlightn Security Checker command. You can call it using php artisan security-check:now., (*14)

screenshot-console, (*15)

Translations

If you need to translate this package into your own language you can do so by publishing the translation files:, (*16)

php artisan vendor:publish --provider="Jorijn\LaravelSecurityChecker\ServiceProvider" --tag="translations"

Please consider helping out by creating a pull request with your language to help out others., (*17)

The Versions

30/01 2018

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

20/08 2017

dev-master

9999999-dev

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

23/07 2017

v0.2.2

0.2.2.0

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

23/07 2017

dev-develop

dev-develop

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

23/07 2017

v0.2.1

0.2.1.0

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

22/07 2017

v0.2.0

0.2.0.0

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

21/07 2017

v0.1.1

0.1.1.0

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies

21/07 2017

v0.1.0

0.1.0.0

Added Laravel functionality to SensioLabs Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorijn Schrijvershof

laravel composer security dependencies