@@ -10,21 +10,24 @@ To solve the exercises, head to the [PHP track][exercism-track-home] and check t
10
10
The following system dependencies are required:
11
11
12
12
- ` composer ` , as recommended in the [ PHP track installation docs] [ exercism-track-installation-composer ] .
13
- - [ ` bash ` shell] [ gnu-bash ]
14
- - PHP V8.2+ CLI
13
+ - [ ` bash ` shell] [ gnu-bash ] .
14
+ - PHP V8.2+ CLI.
15
+ - An active Internet connection for installing required tools / composer packages.
15
16
16
- Run the following commands to get started with this project:
17
+ Run the following command to get started with this project:
17
18
18
19
``` shell
19
- bin/fetch-configlet # The official tool for managing Exercism language track repositories
20
20
composer install # Required dependencies to develop this track
21
21
```
22
22
23
23
## Running Exercism resources management
24
24
25
- ` bin/configlet ` is a tool to manage exercism resources in this track.
25
+ ` bin/configlet ` is the official tool for managing Exercism language track repositories .
26
26
See [ Building Exercism docs] [ exercism-configlet ] .
27
27
28
+ For convenience, you can use ` composer configlet:fmt ` to fix formatting issues in the Exercism track files.
29
+ This is included in ` composer ci ` to run the CI checks locally.
30
+
28
31
## Running Unit Test Suite
29
32
30
33
The tests are run with PHPUnit. A shell loop injecting ` exemplar.php ` is provided to ease testing.
@@ -35,22 +38,27 @@ Execute the following command to run the tests:
35
38
composer test:run
36
39
```
37
40
41
+ This is included in ` composer ci ` to run the CI checks locally.
42
+
38
43
## Running Style Checker
39
44
40
- This project use a slightly [ modified] [ local-file-phpcs-config ] version of [ PSR-12] .
45
+ This project uses a slightly [ modified] [ local-file-phpcs-config ] version of [ PSR-12] .
41
46
Use the following commands to apply code style:
42
47
43
48
``` shell
44
49
composer lint:check # Checks the files against the code style rules
45
- composer lint:fix # Automatically fix codestyle issues
50
+ composer lint:fix # Automatically fix code style issues
46
51
```
47
52
53
+ The ` lint:check ` is included in ` composer ci ` to run the CI checks locally.
54
+
48
55
## Contributing
49
56
50
57
- Read the documentation at [ Exercism] [ exercism-docs ] .
51
58
- Follow the [ PSR-12] coding style (Exercisms PHP track uses a slightly [ modified] [ local-file-phpcs-config ] version of [ PSR-12] ).
59
+ - Run ` composer ci ` to run CI checks locally before pushing.
52
60
- CI is run on all pull requests, it must pass the required checks for merge.
53
- - CI is running all tests on PHP 8.0 to PHP 8.2
61
+ - CI is running all tests on PHP 8.0 to PHP 8.2 for Linux, Windows and MacOS.
54
62
55
63
## Generating new practice exercises
56
64
0 commit comments