From 7da78da4f4d4b9e4c75e2804dec5800121f1d838 Mon Sep 17 00:00:00 2001 From: Cesar Date: Fri, 20 Oct 2023 12:44:40 +0200 Subject: [PATCH] update docs --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d8a4cf..5b22b8c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# php-skeleton +# PHP Dev to Descom.es ## Install @@ -10,6 +10,10 @@ composer require --dev descom/dev ## Usage +### PHP CS Fixer + +Create file `.php-cs-fixer.dist` in root project with content: + ```php $finder = Symfony\Component\Finder\Finder::create() ->in([ @@ -25,3 +29,16 @@ return (new PhpCsFixer\Config()) ->setRules(Descom\Dev\CsFixer::rules()) ->setFinder($finder); ``` + +#### Configure PHP CS Fixer in VS Code + +Install extension [PHP CS Fixer](https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer) + +With this settings: + +```json +{ + "php-cs-fixer.onsave": true, + "php-cs-fixer.executablePath": "${workspaceFolder}/vendor/bin/php-cs-fixer" +} +```