PHP code example of nilportugues / php_forbidden

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

    

nilportugues / php_forbidden example snippets


$ composer 

$ php bin/php_forbidden check <path/to/directory>

$ php bin/php_forbidden check <path/to/file>

$ cat <path/to/file> | php bin/php_forbidden check

$ php bin/php_forbidden check

// Insert your code
// and press CTRL+D to send EOF
yml
forbidden:
  - file_get_contents
  - fopen
  - die
  - var_dump
  - print_r

$  php bin/php_forbidden check -c configs/php_forbidden_function.yml src/