Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Oct 20, 2023
1 parent 94c0a04 commit 7da78da
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# php-skeleton
# PHP Dev to Descom.es

## Install

Expand All @@ -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([
Expand All @@ -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"
}
```

0 comments on commit 7da78da

Please sign in to comment.