PHP code example of webtoolshealth / php-coding-standard

1. Go to this page and download the library: Download webtoolshealth/php-coding-standard 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/ */

    

webtoolshealth / php-coding-standard example snippets




declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Webtoolshealth\CodingStandard\Set;

return static function (ContainerConfigurator $container): void {
    $parameters = $container->parameters();

    $parameters->set(Option::PATHS, [
        __DIR__ . '/app',
        __DIR__ . '/config',
        __DIR__ . '/database',
        __DIR__ . '/routes',
        __DIR__ . '/tests',
    ]);

    $parameters->set(Option::PARALLEL, true);
    
    $container->import(Set::WEBTOOLS_CODING_STANDARD);
};
bash
 composer