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 doc is intended for contributors to `sdk-php` (hopefully that's you!)
4
+
5
+
All contributors must complete the Temporal Contributor License Agreement (CLA) before changes can be merged. A link to the CLA will be posted in the PR.
6
+
7
+
## Development environment
8
+
9
+
-[PHP 8.1+](https://www.php.net/downloads.php)
10
+
-[Composer](https://getcomposer.org/download/)
11
+
12
+
## Build
13
+
14
+
```bash
15
+
composer install # Downloads regular dependencies
16
+
composer run get:binaries # Downloads dependencies for local development
17
+
pecl install grpc # Required by the Temporal client
18
+
pecl install protobuf # Improves performance of protobuf serialization
19
+
```
20
+
21
+
## Test
22
+
23
+
```bash
24
+
composer run test:unit # Unit tests
25
+
composer run test:func # Functional tests
26
+
composer run test:arch # Architecture tests
27
+
composer run test:accept # All acceptance tests
28
+
composer run test:accept-fast # All acceptance tests except the slow ones
29
+
composer run test:accept-slow # Only the slow acceptance tests
30
+
```
31
+
32
+
## Quality control
33
+
34
+
```bash
35
+
composer run cs:diff # Show code style violations (dry run)
36
+
composer run cs:fix # Auto-fix code style violations
37
+
composer run psalm # Run static analysis
38
+
composer run psalm:baseline # Update the Psalm baseline file
0 commit comments