php7-mysql-data/Kapitel_10/Lektion_4/symfony/vendor/sensiolabs/security-checker
2016-08-21 00:15:10 +02:00
..
SensioLabs/Security Initiale Version 2016-08-21 00:15:10 +02:00
box.json Initiale Version 2016-08-21 00:15:10 +02:00
composer.json Initiale Version 2016-08-21 00:15:10 +02:00
LICENSE Initiale Version 2016-08-21 00:15:10 +02:00
README.md Initiale Version 2016-08-21 00:15:10 +02:00
security-checker Initiale Version 2016-08-21 00:15:10 +02:00

SensioLabs Security Checker

The SensioLabs Security Checker is a command line tool that checks if your application uses dependencies with known security vulnerabilities. It uses the SensioLabs Security Check Web service and the Security Advisories Database.

Usage

Download the security-checker.phar file:

$ php security-checker.phar security:check /path/to/composer.lock

Use the code from the repository directly:

$ composer install
$ php security-checker security:check /path/to/composer.lock

Integration

The checker uses the Symfony Console component; so, you can easily integrate the checker into your own project:

  • by using the SecurityCheckerCommand class into your Symfony Console application;

  • by using the SecurityChecker class directly into your own code:

     use SensioLabs\Security\SecurityChecker;
    
     $checker = new SecurityChecker();
     $alerts = $checker->check('/path/to/composer.lock');