PHP code example of psalm / plugin-laravel

1. Go to this page and download the library: Download psalm/plugin-laravel 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/ */

    

psalm / plugin-laravel example snippets


$sortBy = $request->input('sort');      // tainted source: user input

User::query()->orderBy($sortBy)->get(); // tainted sink: reaches a column name