{
"name": "esi/cloudflare-turnstile",
"description": "A PSR-compatible PHP client for Cloudflare Turnstile.",
"license": "MIT",
"type": "library",
"keywords": [
"php",
"php-library",
"cloudflare",
"turnstile",
"cloudflare-turnstile"
],
"authors": [
{
"name": "Eric Sizemore",
"email": "admin@secondversion.com",
"homepage": "https://www.secondversion.com"
}
],
"homepage": "https://github.com/ericsizemore/cloudflare-turnstile",
"support": {
"issues": "https://github.com/ericsizemore/cloudflare-turnstile/issues",
"forum": "https://github.com/ericsizemore/cloudflare-turnstile/discussions",
"source": "https://github.com/ericsizemore/cloudflare-turnstile/tree/main",
"docs": "https://github.com/ericsizemore/cloudflare-turnstile",
"rss": "https://github.com/ericsizemore/cloudflare-turnstile/releases.atom",
"security": "https://github.com/ericsizemore/cloudflare-turnstile/security/policy"
},
"funding": [
{
"type": "custom",
"url": "https://ko-fi.com/ericsizemore"
},
{
"type": "github",
"url": "https://github.com/ericsizemore"
}
],
"require": {
"php": "~8.2.0 || ~8.3.0 || ~8.4.1",
"psr/http-client": "^1.0.3",
"psr/http-factory": "^1.1",
"psr/http-message": "^2.0"
},
"require-dev": {
"ext-curl": "*",
"esi/phpunit-coverage-check": "^2.0",
"friendsofphp/php-cs-fixer": "^3.65",
"guzzlehttp/guzzle": "^7.9",
"guzzlehttp/psr7": "^2.7",
"infection/infection": "^0",
"nyholm/psr7": "^1.8",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^11.5",
"psalm/plugin-phpunit": "^0.19.0",
"rector/rector": "^2.0",
"symfony/http-client": "^7.2",
"symfony/psr-http-message-bridge": "^7.2",
"vimeo/psalm": "dev-master"
},
"suggest": {
"guzzlehttp/guzzle": "A popular PSR-18 HTTP client, PSR-7 message implementation, and PSR-17 factory (~7.8)",
"kriswallsmith/buzz": "Lightweight PSR-18 compliant HTTP client (~1.2)",
"laminas/laminas-diactoros": "PSR-7 implementation and PSR-17 factory from the Laminas Project (~3.3)",
"nyholm/psr7": "A fast PHP PSR-7 implementation and PSR-17 factory (~1.8)",
"php-http/curl-client": "PSR-18 compliant HTTP client based on cURL (~2.3)",
"php-http/socket-client": "PSR-18 compliant HTTP client based on PHP streams (~2.1)",
"slim/psr7": "PSR-7 implementation and PSR-17 factory used by Slim Framework (~1.6)",
"symfony/http-client": "Symfony's PSR-18 compliant HTTP client (^6.4 || ^7.0)"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Esi\\CloudflareTurnstile\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Esi\\CloudflareTurnstile\\Tests\\Integration\\": "tests/Integration",
"Esi\\CloudflareTurnstile\\Tests\\Unit\\": "tests/Unit"
}
},
"config": {
"allow-plugins": {
"infection/extension-installer": true,
"phpstan/extension-installer": true
}
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
}
},
"scripts": {
"analyze": [
"@clear-build",
"@composer validate",
"@phpunit",
"@code-coverage",
"@psalm:shepherd",
"@psalm:security",
"@phpstan"
],
"clear-build": "rm -rf ./build/*",
"code-coverage": "vendor/bin/coverage-check build/logs/clover.xml 100",
"infection": "vendor/bin/infection --threads=max --configuration=infection.json5 --min-msi=100 --min-covered-msi=100",
"phpcs:check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff",
"phpcs:fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon -vvv",
"phpunit": "vendor/bin/phpunit --testsuite=unit,integration",
"phpunit:integration": "vendor/bin/phpunit --testsuite=integration",
"phpunit:migrate": "@phpunit --migrate-configuration",
"phpunit:unit": "vendor/bin/phpunit --testsuite=unit",
"psalm": "vendor/bin/psalm -c psalm.xml --no-cache --no-diff",
"psalm:baseline": "@psalm --set-baseline=psalm-baseline.xml",
"psalm:security": "@psalm --taint-analysis",
"psalm:shepherd": "@psalm --shepherd --stats",
"refactor:check": "@refactor:fix --dry-run",
"refactor:fix": "vendor/bin/rector process"
}
}
|