PHP code example of ctubio / www-toolbox

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

    

ctubio / www-toolbox example snippets

/pub/www-toolbox.php
/tools

  location /tools {
      rewrite ^/tools(/.*)$ $1 break;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_pass http://www-toolbox:80/;
      proxy_read_timeout 90;
  }
www-toolbox
/pub/www-toolbox.php
pub/www-toolbox.php

echo new WWWToolbox(
  WWWToolbox::ALL_TOOLS
);

echo new WWWToolbox(array(
  'dnscheck',
  'sslcheck',
  'portscan'
));
/tools

echo new WWWToolbox(array(
  'custom_dnscheck' => 'dnscheck',
  'custom_sslcheck' => 'sslcheck',
  'custom_portscan' => 'portscan'
));