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
Refactor documentation, examples, and scripts for clarity and usability improvements
- Streamlined README and usage examples for improved readability.
- Enhanced descriptions and formatting of features and type examples.
- Refined installation and development guides to include new Composer scripts (`oncheckout`, `oncommit`).
- Consolidated and updated static type usage examples across docs.
- Improved alignment of documentation with recent architectural changes and naming conventions.
Copy file name to clipboardExpand all lines: README.md
+26-71Lines changed: 26 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,19 @@
1
1
PHP Typed Values
2
2
================
3
3
4
-
Typed value objects for common PHP data types. Make primitives explicit, safe, and self-documenting with tiny immutable value objects.
4
+
PHP 8.2 typed value objects for common PHP data types.
5
5
6
6
[](https://packagist.org/packages/georgii-web/php-typed-values)
Copy file name to clipboardExpand all lines: docs/DEVELOP.md
+37-3Lines changed: 37 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,16 +23,50 @@ Convenient scripts are defined in composer.json:
23
23
24
24
- composer test — run test suite (Pest)
25
25
- composer type — enforce 100% type coverage via Pest plugin
26
-
- composer coverage — run tests with coverage threshold
26
+
- composer coverage — run tests with a coverage threshold
27
27
- composer sca — static analysis via Psalm
28
28
- composer cs — fix coding style with PHP-CS-Fixer
29
29
30
-
You can chain pre-commit checks via:
30
+
After checkout: prepare the project
31
+
-----------------------------------
32
+
33
+
Before you start developing or running examples/tests, run the following Composer script to ensure your local environment is ready and all the latest packages are installed:
34
+
35
+
```
36
+
composer oncheckout
37
+
```
38
+
39
+
This script will:
40
+
41
+
- install/update Composer dependencies
42
+
- regenerate the autoloader (composer dump-autoload)
43
+
- clear Psalm cache to avoid stale analysis state
44
+
45
+
Run it right after cloning the repository or switching branches so that you work against the latest dependencies and tools.
46
+
47
+
Before PR: run full checks
48
+
--------------------------
49
+
50
+
Before opening a Pull Request, run the following Composer script to execute the full local QA pipeline and ensure your changes pass all checks:
31
51
32
52
```
33
53
composer oncommit
34
54
```
35
55
56
+
This script will run, in order:
57
+
58
+
- composer validate (strict mode)
59
+
- coding style fix/checks (PHP-CS-Fixer)
60
+
- static analysis (Psalm)
61
+
- test suite (Pest)
62
+
- type coverage check (100% via Pest plugin)
63
+
- code coverage check (100% minimum)
64
+
- mutation tests (threshold as configured)
65
+
66
+
If this command succeeds locally, your PR should pass CI checks.
0 commit comments