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
Copy file name to clipboardExpand all lines: README.md
+81-63Lines changed: 81 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,13 @@
27
27
28
28
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.
29
29
30
-
If you **like/use** this package, please consider **starring** it. Thanks!
30
+
This repository aims to provide a standardized way to apply coding standards across multiple projects, ensuring consistency and adherence to best practices.
31
+
32
+
By using predefined rulesets, it simplifies the setup process and allows teams to quickly integrate PHP-CS-Fixer into their development workflow.
33
+
34
+
<br>
35
+
36
+
If you **like/use** this package, please consider ⭐️ **starring** it. Thanks!
31
37
32
38
<br>
33
39
@@ -38,100 +44,110 @@ If you **like/use** this package, please consider **starring** it. Thanks!
38
44
Require as dependency:
39
45
40
46
```bash
41
-
composer req wayofdev/cs-fixer-config
47
+
composer req --dev wayofdev/cs-fixer-config
42
48
```
43
49
44
50
<br>
45
51
46
52
## 🛠 Configuration
47
53
48
-
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.
54
+
### → Setup
49
55
50
-
2. Example contents of `.php-cs-fixer.dist.php` file:
56
+
- 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.
57
+
58
+
- Example contents of `.php-cs-fixer.dist.php` file:
51
59
52
60
```php
53
-
<?php
61
+
<?php
62
+
63
+
declare(strict_types=1);
64
+
65
+
use WayOfDev\PhpCsFixer\Config\ConfigBuilder;
66
+
use WayOfDev\PhpCsFixer\Config\RuleSets\DefaultSet;
0 commit comments