PHP code example of symplify / coding-standard

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

    

symplify / coding-standard example snippets

diff
# ecs.php
 use Symplify\EasyCodingStandard\Config\ECSConfig;
+use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

 return static function (ECSConfig $ecsConfig): void {
+    $ecsConfig->sets([SetList::SYMPLIFY]);
diff
-$items = [1 => 'Hey'];
+$items = [
+1 => 'Hey'
+];
diff
 /**
- * @param string
+ * @param string $name
  */
 function getPerson($name)
 {
 }