Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
115 lines (115 loc) · 4.68 KB
/
Copy pathcomposer.json
File metadata and controls
115 lines (115 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "gatepost/postcode",
"description": "Unofficial. Not made or endorsed by NIPOST. Read and query Nigerian postcodes.",
"license": "Apache-2.0",
"type": "library",
"require": {
"php": "^8.1",
"psr/http-client": "^1.0.3",
"psr/http-factory": "^1.1.0",
"psr/http-message": "^1.1 || ^2.0",
"psr/simple-cache": "^2.0 || ^3.0"
},
"require-dev": {
"composer/semver": "^3.5.0",
"ergebnis/composer-normalize": "^2.54.0",
"friendsofphp/php-cs-fixer": "^3.95.27",
"guzzlehttp/guzzle": "^7.15.5",
"phpmd/phpmd": "^2.15.0",
"phpstan/phpstan": "^2.2.16",
"phpstan/phpstan-deprecation-rules": "^2.0.5",
"phpstan/phpstan-phpunit": "^2.0.21",
"phpstan/phpstan-strict-rules": "^2.0.12",
"phpunit/phpunit": "^10.5.65 || ^13.4.0"
},
"autoload": {
"psr-4": {
"Gatepost\\Postcode\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Gatepost\\Postcode\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"platform": {
"php": "8.1.0"
},
"sort-packages": true
},
"scripts": {
"api:check": "scripts/check-api.sh",
"api:dump": "@php scripts/dump-api.php",
"api:dump:check": "@php scripts/dump-api.php --check",
"changes:check": "changie merge --dry-run | cmp - CHANGELOG.md",
"check": [
"@generate:check",
"@context:check",
"@composer validate --strict",
"@composer normalize --dry-run",
"@composer dump-autoload --optimize --strict-psr --no-scripts",
"@cs:check",
"@phpstan",
"@phpmd",
"@test:coverage",
"@api:dump:check",
"@api:check",
"@changes:check",
"@licences",
"@deps:licences",
"@secrets",
"@workflows:check",
"@tells"
],
"context:check": "cmp CONTEXT.md spec/CONTEXT.md",
"contract": "phpunit --testsuite contract",
"cs": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"deps:licences": "@php scripts/check-licences.php",
"generate": "@php scripts/generate-data.php",
"generate:check": "@php scripts/generate-data.php --check",
"licences": "uvx --with charset-normalizer==3.5.2 reuse@6.2.0 lint",
"mutation": [
"@putenv XDEBUG_MODE=coverage",
"tools/infection/vendor/bin/infection --threads=max --show-mutations=0"
],
"phpmd": "@php -d error_reporting=24575 vendor/bin/phpmd scripts,src,tests text phpmd.xml",
"phpstan": "phpstan analyse --no-progress",
"secrets": "gitleaks git --no-banner --redact .",
"tells": "python3 spec/scripts/check-tells",
"test": "phpunit",
"test:coverage": [
"@putenv XDEBUG_MODE=coverage",
"phpunit --path-coverage --coverage-cobertura build/coverage/cobertura.xml",
"@php scripts/check-coverage.php build/coverage/cobertura.xml"
],
"workflows:check": "uvx zizmor@1.30.1 --offline .github/workflows"
},
"scripts-descriptions": {
"api:check": "Compare the public API with the newest release tag.",
"api:dump": "Write the list of the public symbols to docs/api-dump.md.",
"api:dump:check": "Check that docs/api-dump.md matches the public symbols.",
"changes:check": "Check that CHANGELOG.md matches the change files.",
"check": "Run every check that CI runs.",
"context:check": "Check that CONTEXT.md matches the copy in the spec.",
"contract": "Run the contract scenarios against the mock server at GATEPOST_MOCK_URL.",
"cs": "Fix the code style.",
"cs:check": "Check the code style.",
"deps:licences": "Check that each locked package has a permissive licence (DEP-4).",
"generate": "Write the generated classes in src/Internal.",
"generate:check": "Check that the generated classes are up to date.",
"licences": "Check the licence information of each file.",
"mutation": "Run the mutation tests. They need Xdebug.",
"phpmd": "Check size and complexity. 24575 hides the PHP 8.4 notices of PHPMD itself.",
"phpstan": "Run static analysis.",
"secrets": "Scan the git history for secrets.",
"tells": "Check for agent tells.",
"test": "Run the tests.",
"test:coverage": "Run the tests with branch coverage. They need Xdebug.",
"workflows:check": "Check the workflows with zizmor."
}
}