mkzaker/laravel-security-checker

Forked from enlightn/laravel-security-checker for supportting laravel 10
3,830 1
Install
composer require mkzaker/laravel-security-checker
PHP:^7.2|^8.0|^8.2
License:MIT
Last Updated:Feb 27, 2024
Links: GitHub  ·  Packagist
Maintainer: mkzaker

Enlightn Security Checker for Laravel

tests MIT Licensed Latest Stable Version

This package includes an Artisan command that checks if your application uses dependencies with known security vulnerabilities. It is a wrapper around the Enlightn Security Checker.

Installation

You may use Composer to install the package on your Laravel application:

composer require --dev enlightn/laravel-security-checker

Usage

To check for security vulnerabilities in your dependencies, you may run the security:check Artisan command:

php artisan security:check

sec-checker

Options & Arguments

Composer Lock File

You may specify a custom location for your composer.lock file, using the optional argument:

php artisan security:check /path/to/composer.lock

Format

By default, this command displays the result in ANSI. You may use the --format option to display the result in JSON instead:

php artisan security:check --format=json

Exclude Dev Dependencies

If you would like to exclude dev dependencies from the vulnerabilities scanning, you may use the --no-dev option (defaults to false):

php artisan security:check --no-dev

Custom Directory for Caching Advisories Database

By default, the security:check command uses the directory returned by the sys_get_temp_dir PHP function for storing the cached advisories database. If you wish to modify the directory, you may use the --temp-dir option:

php artisan security:check --temp-dir=/tmp

Contribution Guide

Thank you for considering contributing to the Enlightn security checker project! The contribution guide can be found here.

License

The Enlightn security checker for Laravel is licensed under the MIT license.

Related Packages

martian/spammailchecker

A laravel package that protect users from entering non-existing/spam email addre...

2,397 43
shieldci/laravel

Automated code analysis for Laravel applications covering security, performance,...

17,393 2
kodeine/laravel-acl

Light-weight role-based permissions for Laravel 5 built in Auth system.

363,834 774
spatie/laravel-permission

Permission handling for Laravel 12 and up

115,803,214 12,964
jrenton/laravel-5-scaffold

Fastest way to rapidly scaffold a laravel application

268 4