PHP code example of macfja / phpqa-extensions

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

    

macfja / phpqa-extensions example snippets


$ php vendor/bin/phpqa-extensions.php --tools

List of available tools
=======================

 --------------------------- -------- ----------------------------- ----------- 
  Name                        CLI      Composer                      Installed  
 --------------------------- -------- ----------------------------- ----------- 
  PhpAssumptions              phpa     rskuipers/php-assumptions     No        
  PhpCodeAnalyzer             phpca    wapmorgan/php-code-analyzer   No        
  PHP Magic Number Detector   phpmnd   povils/phpmnd                 No        
 --------------------------- -------- ----------------------------- ----------- 

$ php vendor/bin/phpqa-extensions.php --add phpmnd

$ php vendor/bin/phpqa-extensions.php --add "PHP Magic Number Detector"

$ php vendor/bin/phpqa-extensions.php --add povils/phpmnd

$ php vendor/bin/phpqa-extensions.php --add phpmnd --add phpa

$ php vendor/bin/phpqa-extensions.php --enable phpmnd:\MacFJA\PHPQAExtensions\Tools\Analyzer\PhpMagicNumber:app/report/phpmagicnumber.xsl