|
| 1 | +{ |
| 2 | + "$schema": "https://getcomposer.org/schema.json", |
| 3 | + "name": "silbeckdevs/pagbank-sdk-php", |
| 4 | + "description": "SDK php para integração com a API PagBank", |
| 5 | + "minimum-stability": "stable", |
| 6 | + "license": "MIT", |
| 7 | + "type": "library", |
| 8 | + "require": { |
| 9 | + "php": "^8.2", |
| 10 | + "psr/http-client": "^1.0.3", |
| 11 | + "guzzlehttp/guzzle": "^7.9.2" |
| 12 | + }, |
| 13 | + "require-dev": { |
| 14 | + "phpunit/phpunit": "^11.5.2", |
| 15 | + "phpstan/phpstan": "^2.1.1", |
| 16 | + "kint-php/kint": "^6.0.1", |
| 17 | + "monolog/monolog": "^3.8.1", |
| 18 | + "friendsofphp/php-cs-fixer": "^3.67.0", |
| 19 | + "brainmaestro/composer-git-hooks": "^3.0.0" |
| 20 | + }, |
| 21 | + "autoload": { |
| 22 | + "psr-4": { |
| 23 | + "PagBankApi\\": "src/PagBankApi/" |
| 24 | + } |
| 25 | + }, |
| 26 | + "autoload-dev": { |
| 27 | + "psr-4": { |
| 28 | + "PagBankApi\\Tests\\": "tests/" |
| 29 | + } |
| 30 | + }, |
| 31 | + "scripts": { |
| 32 | + "start": "php -S localhost:8879 -t .", |
| 33 | + "format:check": "php-cs-fixer fix --dry-run --stop-on-violation", |
| 34 | + "format:fix": "php-cs-fixer fix", |
| 35 | + "phpstan": "phpstan analyse -c phpstan.neon --xdebug", |
| 36 | + "phpunit": "phpunit --configuration phpunit.xml --testdox", |
| 37 | + "test": [ |
| 38 | + "@phpstan", |
| 39 | + "@phpunit" |
| 40 | + ], |
| 41 | + "lint": [ |
| 42 | + "@format:fix", |
| 43 | + "@phpstan" |
| 44 | + ], |
| 45 | + "test:unit": "phpunit tests/Unit --configuration phpunit.xml --testdox", |
| 46 | + "test:e2e": "phpunit tests/E2E --configuration phpunit.xml --testdox", |
| 47 | + "test:coverage": "phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml --coverage-html build/coverage", |
| 48 | + "post-install-cmd": "cghooks add --ignore-lock", |
| 49 | + "post-update-cmd": "cghooks update" |
| 50 | + }, |
| 51 | + "extra": { |
| 52 | + "hooks": { |
| 53 | + "config": { |
| 54 | + "stop-on-failure": [ |
| 55 | + "pre-push", |
| 56 | + "pre-commit" |
| 57 | + ] |
| 58 | + }, |
| 59 | + "pre-commit": [ |
| 60 | + "composer format:check" |
| 61 | + ] |
| 62 | + } |
| 63 | + } |
| 64 | +} |
0 commit comments