PHP code example of descom / dev

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

    

descom / dev example snippets




$finder = Symfony\Component\Finder\Finder::create()
    ->in([
        __DIR__.'/src',
        __DIR__.'/tests',
    ])
    ->name('*.php')
    ->notName('*.blade.php')
    ->ignoreDotFiles(true)
    ->ignoreVCS(true);

return (new PhpCsFixer\Config())
    ->setRules(Descom\Dev\CsFixer::rules())
    ->setFinder($finder);
bash
bash <(curl -Ls https://raw.githubusercontent.com/descom-es/php-dev/master/setup.sh)
json
{
    "php-cs-fixer.onsave": true,
    "php-cs-fixer.executablePath": "${workspaceFolder}/vendor/bin/php-cs-fixer"
}