File tree 1 file changed +36
-1
lines changed
1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Installation
4
4
5
+ ### Via Composer
6
+
7
+ ``` bash
8
+ composer require zhouyl/phpfmt-tool
9
+ ```
10
+
11
+ ### Configuration file lookup order
12
+
13
+ 1 . $PWD/.phpfmt.ini (customize)
14
+ 2 . $HOME/.phpfmt/.phpfmt.ini (global)
15
+
16
+ ### Customize the configuration file
17
+
18
+ ``` bash
19
+ cp vendor/zhouyl/phpfmt-tool/.phpfmt.ini .
20
+ ```
21
+
22
+ ### Customize the default formatting directories (e.g. laravel 5.x)
23
+
24
+ ``` bash
25
+ echo " ./app ./bootstrap ./database" > ./.fmtdirs
5
26
```
27
+
28
+ ### Usage
29
+
30
+ ``` bash
31
+ cd /workspace/myapplication
32
+ vendor/bin/phpfmt .
33
+ ```
34
+
35
+ ## Global Installation
36
+
37
+ ``` bash
6
38
wget --no-check-certificate https://github.com/zhouyl/phpfmt-tool/raw/master/phpfmt -O /usr/local/bin/phpfmt
7
39
chmod +x /usr/local/bin/phpfmt
40
+ cd /workspace/myaplication
41
+ phpfmt .
8
42
```
9
43
10
- ## Usage
44
+ ## License
11
45
46
+ The MIT License (MIT). Please see [ License File] ( LICENSE ) for more information.
You can’t perform that action at this time.
0 commit comments