定制 mkzaker/laravel-security-checker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mkzaker/laravel-security-checker

Composer 安装命令:

composer require mkzaker/laravel-security-checker

包简介

Forked from enlightn/laravel-security-checker for supportting laravel 10

README 文档

README

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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-27