PHP code example of soy-php / php-lint-task

1. Go to this page and download the library: Download soy-php/php-lint-task 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/ */

    

soy-php / php-lint-task example snippets




$recipe = new \Soy\Recipe();

$recipe->component('default', function (\Soy\PhpLint\RunTask $phpLintTask) {
    $phpLintTask
        ->setVerbose(true)
        ->enableCache('phplint.json')
        ->run(
            \Symfony\Component\Finder\Finder::create()
                ->in('.')
                ->name('*.php')
                ->exclude('vendor')
        );
});

return $recipe;
sh
$ composer