You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is minimal PHP template which is used by other PHP projects in wayofdev organization.
25
+
Wrapper with pre-defined rules around the [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) package — A tool to automatically fix PHP Coding Standards issues.
26
26
27
27
If you **like/use** this package, please consider **starring** it. Thanks!
28
28
@@ -35,11 +35,75 @@ If you **like/use** this package, please consider **starring** it. Thanks!
35
35
Require as dependency:
36
36
37
37
```bash
38
-
$ composer req wayofdev/package-tpl
38
+
$ composer req wayofdev/cs-fixer-config
39
39
```
40
40
41
41
<br>
42
42
43
+
## 🛠 Configuration
44
+
45
+
1. Create PHP file and name it `.php-cs-fixer.dist.php` and place it inside root directory of project. It will be recognized by PHP CS Fixer automatically.
46
+
47
+
2. Example contents of `.php-cs-fixer.dist.php` file:
48
+
49
+
```php
50
+
<?php
51
+
52
+
declare(strict_types=1);
53
+
54
+
use WayOfDev\PhpCsFixer\Config\ConfigBuilder;
55
+
use WayOfDev\PhpCsFixer\Config\RuleSets\DefaultSet;
@@ -80,3 +144,10 @@ Created in **2022** by [lotyp / wayofdev](https://github.com/wayofdev)
80
144
81
145
<br>
82
146
147
+
## 🧱 Resources
148
+
149
+
* Full documentation about all fixers are available here - [PHP-CS-Fixer configuration UI](https://mlocati.github.io/php-cs-fixer-configurator/#version:3.0)
150
+
151
+
* The official [PHP-CS-Fixer documentation](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
0 commit comments