Skip to content

Commit

Permalink
Improve PSR standards adherence
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Oct 16, 2023
1 parent 18b6a1a commit 6c0fcd4
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"sort-packages": true,
"preferred-install": "dist",
"allow-plugins": {
"infection/extension-installer": true
"php-http/discovery": false
}
},
"minimum-stability": "dev",
Expand All @@ -27,36 +27,27 @@
{
"type": "github",
"url": "https://github.com/flavioheleno"
},
{
"type": "patreon",
"url": "https://www.patreon.com/flavioheleno"
}
],
"require": {
"php": ">=8.1",
"beluga-php/docker-php-api": "7.1.43.x-dev",
"nyholm/psr7": "^1.3",
"php-http/client-common": "^2.3",
"php-http/socket-client": "^2.0",
"psr/http-client": "^1.0",
"psr/http-message": "^1.0 || ^2.0",
"psr/http-client-implementation": "*",
"psr/http-message": "^1.1 || ^2.0",
"psr/http-message-implementation": "*",
"symfony/filesystem": "^6.1",
"symfony/process": "^6.1"
},
"suggest": {
"php-http/httplug-bundle": "For integration with Symfony"
"guzzlehttp/guzzle": "PSR-18 compliant HTTP Client to use the API"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
"infection/infection": "^0.26",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": "^9.5",
"psy/psysh": "^0.11",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^4.3"
"roave/security-advisories": "dev-latest"
},
"conflict": {
"docker-php/docker-php": "*"
Expand All @@ -65,31 +56,19 @@
"php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose --diff",
"php-cs-fixer-fix": "vendor/bin/php-cs-fixer fix --verbose",
"console": "vendor/bin/psysh",
"infection": "vendor/bin/infection",
"lint": "vendor/bin/parallel-lint --exclude vendor .",
"phpcs": "vendor/bin/phpcs --standard=ruleset.xml src/ tests/",
"phpstan": "vendor/bin/phpstan analyse --level=max --autoload-file=vendor/autoload.php src/",
"phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --whitelist=./src/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation",
"psalm": "vendor/bin/psalm --taint-analysis",
"test-ci": "vendor/bin/phpunit ./tests/ --disallow-test-output --process-isolation",
"test-coverage": "vendor/bin/phpunit ./tests/ --whitelist=./src/ --coverage-clover=clover.xml",
"test": [
"@infection",
"@lint",
"@phpunit",
"@phpstan",
"@psalm",
"@phpcs"
"@phpunit"
]
},
"scripts-descriptions": {
"console": "Runs PsySH Console",
"infection": "Runs mutation test framework",
"lint": "Runs complete codebase lint testing",
"phpcs": "Runs coding style checking",
"phpstan": "Runs complete codebase static analysis",
"phpunit": "Runs library test suite",
"psalm": "Runs complete codebase taint analysis",
"test-ci": "Runs library test suite (for continuous integration)",
"test-coverage": "Runs test-coverage analysis",
"test": "Runs all tests"
Expand Down

0 comments on commit 6c0fcd4

Please sign in to comment.