PHP code example of yousha / php-security-linter

1. Go to this page and download the library: Download yousha/php-security-linter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yousha / php-security-linter example snippets

shell
composer global 
shell
php vendor/bin/php-sl --path=.
shell
vendor\bin\php-sl.bat --path=.
shell
php vendor/bin/php-sl --path=./src
shell
php vendor/bin/php-sl --path=./app --exclude=storage,tests
bash
php bin/php-sl.php --path=./src --exclude=storage --exclude-rules=CIS-003,OWASP-001
shell
php vendor/bin/php-sl --path=./public --format=json