|
| 1 | +{ |
| 2 | + "name": "open-feature/validators-hook", |
| 3 | + "description": "A validator hooks package for OpenFeature", |
| 4 | + "license": "Apache-2.0", |
| 5 | + "type": "library", |
| 6 | + "keywords": [ |
| 7 | + "featureflags", |
| 8 | + "featureflagging", |
| 9 | + "openfeature", |
| 10 | + "validator", |
| 11 | + "hook" |
| 12 | + ], |
| 13 | + "authors": [ |
| 14 | + { |
| 15 | + "name": "OpenFeature PHP Maintainers", |
| 16 | + "homepage": "https://github.com/orgs/open-feature/teams/php-maintainer" |
| 17 | + }, |
| 18 | + { |
| 19 | + "name": "open-feature/php-sdk-contrib Contributors", |
| 20 | + "homepage": "https://github.com/open-feature/php-sdk-contrib/graphs/contributors" |
| 21 | + } |
| 22 | + ], |
| 23 | + "require": { |
| 24 | + "php": "^7.4 || ^8", |
| 25 | + "open-feature/sdk": "^1.2.0" |
| 26 | + }, |
| 27 | + "require-dev": { |
| 28 | + "ergebnis/composer-normalize": "^2.25", |
| 29 | + "friendsofphp/php-cs-fixer": "^3.13", |
| 30 | + "hamcrest/hamcrest-php": "^2.0", |
| 31 | + "mdwheele/zalgo": "^0.3.1", |
| 32 | + "mikey179/vfsstream": "v1.6.11", |
| 33 | + "mockery/mockery": "^1.5", |
| 34 | + "phan/phan": "^5.4", |
| 35 | + "php-parallel-lint/php-console-highlighter": "^1.0", |
| 36 | + "php-parallel-lint/php-parallel-lint": "^1.3", |
| 37 | + "phpstan/extension-installer": "^1.1", |
| 38 | + "phpstan/phpstan": "~1.9.0", |
| 39 | + "phpstan/phpstan-mockery": "^1.0", |
| 40 | + "phpstan/phpstan-phpunit": "^1.1", |
| 41 | + "psalm/plugin-mockery": "^0.9.1", |
| 42 | + "psalm/plugin-phpunit": "^0.18.0", |
| 43 | + "ramsey/coding-standard": "^2.0.3", |
| 44 | + "ramsey/composer-repl": "^1.4", |
| 45 | + "ramsey/conventional-commits": "^1.3", |
| 46 | + "roave/security-advisories": "dev-latest", |
| 47 | + "spatie/phpunit-snapshot-assertions": "^4.2", |
| 48 | + "vimeo/psalm": "~4.30.0" |
| 49 | + }, |
| 50 | + "minimum-stability": "dev", |
| 51 | + "prefer-stable": true, |
| 52 | + "autoload": { |
| 53 | + "psr-4": { |
| 54 | + "OpenFeature\\Hooks\\Validators\\": "src" |
| 55 | + } |
| 56 | + }, |
| 57 | + "autoload-dev": { |
| 58 | + "psr-4": { |
| 59 | + "OpenFeature\\Hooks\\Validators\\Test\\": "tests" |
| 60 | + } |
| 61 | + }, |
| 62 | + "config": { |
| 63 | + "allow-plugins": { |
| 64 | + "phpstan/extension-installer": true, |
| 65 | + "dealerdirect/phpcodesniffer-composer-installer": true, |
| 66 | + "ergebnis/composer-normalize": true, |
| 67 | + "captainhook/plugin-composer": true, |
| 68 | + "ramsey/composer-repl": true |
| 69 | + }, |
| 70 | + "sort-packages": true |
| 71 | + }, |
| 72 | + "extra": { |
| 73 | + "captainhook": { |
| 74 | + "force-install": false |
| 75 | + } |
| 76 | + }, |
| 77 | + "scripts": { |
| 78 | + "dev:analyze": [ |
| 79 | + "@dev:analyze:phpstan", |
| 80 | + "@dev:analyze:psalm" |
| 81 | + ], |
| 82 | + "dev:analyze:phpstan": "phpstan analyse --ansi --debug --memory-limit=512M", |
| 83 | + "dev:analyze:psalm": "psalm", |
| 84 | + "dev:build:clean": "git clean -fX build/", |
| 85 | + "dev:lint": [ |
| 86 | + "@dev:lint:syntax", |
| 87 | + "@dev:lint:style" |
| 88 | + ], |
| 89 | + "dev:lint:fix": "phpcbf", |
| 90 | + "dev:lint:style": "phpcs --colors", |
| 91 | + "dev:lint:syntax": "parallel-lint --colors src/ tests/", |
| 92 | + "dev:test": [ |
| 93 | + "@dev:lint", |
| 94 | + "@dev:analyze", |
| 95 | + "@dev:test:unit", |
| 96 | + "@dev:test:integration" |
| 97 | + ], |
| 98 | + "dev:test:coverage:ci": "phpunit --colors=always --coverage-text --coverage-clover build/coverage/clover.xml --coverage-cobertura build/coverage/cobertura.xml --coverage-crap4j build/coverage/crap4j.xml --coverage-xml build/coverage/coverage-xml --log-junit build/junit.xml", |
| 99 | + "dev:test:coverage:html": "phpunit --colors=always --coverage-html build/coverage/coverage-html/", |
| 100 | + "dev:test:unit": [ |
| 101 | + "@dev:test:unit:setup", |
| 102 | + "phpunit --colors=always --testdox --testsuite=unit", |
| 103 | + "@dev:test:unit:teardown" |
| 104 | + ], |
| 105 | + "dev:test:unit:debug": "phpunit --colors=always --testdox -d xdebug.profiler_enable=on", |
| 106 | + "dev:test:unit:setup": "echo 'Setup for unit tests...'", |
| 107 | + "dev:test:unit:teardown": "echo 'Tore down for unit tests...'", |
| 108 | + "dev:test:integration": [ |
| 109 | + "@dev:test:integration:setup", |
| 110 | + "phpunit --colors=always --testdox --testsuite=integration", |
| 111 | + "@dev:test:integration:teardown" |
| 112 | + ], |
| 113 | + "dev:test:integration:debug": "phpunit --colors=always --testdox -d xdebug.profiler_enable=on", |
| 114 | + "dev:test:integration:setup": "echo 'Setup for integration tests...'", |
| 115 | + "dev:test:integration:teardown": "echo 'Tore down integration tests...'", |
| 116 | + "test": "@dev:test" |
| 117 | + }, |
| 118 | + "scripts-descriptions": { |
| 119 | + "dev:analyze": "Runs all static analysis checks.", |
| 120 | + "dev:analyze:phpstan": "Runs the PHPStan static analyzer.", |
| 121 | + "dev:analyze:psalm": "Runs the Psalm static analyzer.", |
| 122 | + "dev:build:clean": "Cleans the build/ directory.", |
| 123 | + "dev:lint": "Runs all linting checks.", |
| 124 | + "dev:lint:fix": "Auto-fixes coding standards issues, if possible.", |
| 125 | + "dev:lint:style": "Checks for coding standards issues.", |
| 126 | + "dev:lint:syntax": "Checks for syntax errors.", |
| 127 | + "dev:test": "Runs linting, static analysis, and unit tests.", |
| 128 | + "dev:test:coverage:ci": "Runs unit tests and generates CI coverage reports.", |
| 129 | + "dev:test:coverage:html": "Runs unit tests and generates HTML coverage report.", |
| 130 | + "dev:test:unit": "Runs unit tests.", |
| 131 | + "test": "Runs linting, static analysis, and unit tests." |
| 132 | + } |
| 133 | +} |
0 commit comments