https://github.com/enlightn/laravel-security-checker
Scan your Laravel app dependencies for known security vulnerabilities.
https://github.com/enlightn/laravel-security-checker
laravel security vulnerability-scanner
Last synced: 8 months ago
JSON representation
Scan your Laravel app dependencies for known security vulnerabilities.
- Host: GitHub
- URL: https://github.com/enlightn/laravel-security-checker
- Owner: enlightn
- Created: 2021-04-20T17:46:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T15:14:48.000Z (over 3 years ago)
- Last Synced: 2025-02-10T07:36:17.275Z (over 1 year ago)
- Topics: laravel, security, vulnerability-scanner
- Language: PHP
- Homepage:
- Size: 81.1 KB
- Stars: 41
- Watchers: 3
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Enlightn Security Checker for Laravel

[](LICENSE.md)
[](https://packagist.org/packages/enlightn/laravel-security-checker)
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](https://github.com/enlightn/security-checker).
## Installation
You may use Composer to install the package on your Laravel application:
```bash
composer require --dev enlightn/laravel-security-checker
```
## Usage
To check for security vulnerabilities in your dependencies, you may run the `security:check` Artisan command:
```bash
php artisan security:check
```

## Options & Arguments
### Composer Lock File
You may specify a custom location for your `composer.lock` file, using the optional argument:
```bash
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:
```bash
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):
```bash
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:
```bash
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](https://www.laravel-enlightn.com/docs/getting-started/contribution-guide.html).
## License
The Enlightn security checker for Laravel is licensed under the [MIT license](LICENSE.md).