PHP code example of smile / magento2-smilelab-phpmd

1. Go to this page and download the library: Download smile/magento2-smilelab-phpmd 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/ */

    

smile / magento2-smilelab-phpmd example snippets

shell
php vendor/bin/phpmd [src folder] text vendor/smile/magento2-smilelab-phpmd/ruleset.xml