Skip to content

Commit 6c0fcd4

Browse files
committed
Improve PSR standards adherence
1 parent 18b6a1a commit 6c0fcd4

1 file changed

Lines changed: 7 additions & 28 deletions

File tree

composer.json

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"sort-packages": true,
99
"preferred-install": "dist",
1010
"allow-plugins": {
11-
"infection/extension-installer": true
11+
"php-http/discovery": false
1212
}
1313
},
1414
"minimum-stability": "dev",
@@ -27,36 +27,27 @@
2727
{
2828
"type": "github",
2929
"url": "https://github.com/flavioheleno"
30-
},
31-
{
32-
"type": "patreon",
33-
"url": "https://www.patreon.com/flavioheleno"
3430
}
3531
],
3632
"require": {
3733
"php": ">=8.1",
3834
"beluga-php/docker-php-api": "7.1.43.x-dev",
39-
"nyholm/psr7": "^1.3",
40-
"php-http/client-common": "^2.3",
41-
"php-http/socket-client": "^2.0",
4235
"psr/http-client": "^1.0",
43-
"psr/http-message": "^1.0 || ^2.0",
36+
"psr/http-client-implementation": "*",
37+
"psr/http-message": "^1.1 || ^2.0",
38+
"psr/http-message-implementation": "*",
4439
"symfony/filesystem": "^6.1",
4540
"symfony/process": "^6.1"
4641
},
4742
"suggest": {
48-
"php-http/httplug-bundle": "For integration with Symfony"
43+
"guzzlehttp/guzzle": "PSR-18 compliant HTTP Client to use the API"
4944
},
5045
"require-dev": {
5146
"friendsofphp/php-cs-fixer": "^3.8",
52-
"infection/infection": "^0.26",
5347
"php-parallel-lint/php-parallel-lint": "^1.2",
54-
"phpstan/phpstan": "^1.0",
5548
"phpunit/phpunit": "^9.5",
5649
"psy/psysh": "^0.11",
57-
"roave/security-advisories": "dev-master",
58-
"squizlabs/php_codesniffer": "^3.5",
59-
"vimeo/psalm": "^4.3"
50+
"roave/security-advisories": "dev-latest"
6051
},
6152
"conflict": {
6253
"docker-php/docker-php": "*"
@@ -65,31 +56,19 @@
6556
"php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose --diff",
6657
"php-cs-fixer-fix": "vendor/bin/php-cs-fixer fix --verbose",
6758
"console": "vendor/bin/psysh",
68-
"infection": "vendor/bin/infection",
6959
"lint": "vendor/bin/parallel-lint --exclude vendor .",
70-
"phpcs": "vendor/bin/phpcs --standard=ruleset.xml src/ tests/",
71-
"phpstan": "vendor/bin/phpstan analyse --level=max --autoload-file=vendor/autoload.php src/",
7260
"phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --whitelist=./src/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation",
73-
"psalm": "vendor/bin/psalm --taint-analysis",
7461
"test-ci": "vendor/bin/phpunit ./tests/ --disallow-test-output --process-isolation",
7562
"test-coverage": "vendor/bin/phpunit ./tests/ --whitelist=./src/ --coverage-clover=clover.xml",
7663
"test": [
77-
"@infection",
7864
"@lint",
79-
"@phpunit",
80-
"@phpstan",
81-
"@psalm",
82-
"@phpcs"
65+
"@phpunit"
8366
]
8467
},
8568
"scripts-descriptions": {
8669
"console": "Runs PsySH Console",
87-
"infection": "Runs mutation test framework",
8870
"lint": "Runs complete codebase lint testing",
89-
"phpcs": "Runs coding style checking",
90-
"phpstan": "Runs complete codebase static analysis",
9171
"phpunit": "Runs library test suite",
92-
"psalm": "Runs complete codebase taint analysis",
9372
"test-ci": "Runs library test suite (for continuous integration)",
9473
"test-coverage": "Runs test-coverage analysis",
9574
"test": "Runs all tests"

0 commit comments

Comments
 (0)