choir-psr-http/composer.json
2025-03-10 10:14:46 +08:00

71 lines
1.8 KiB
JSON

{
"name": "choir/psr-http",
"description": "PHP 写的 Socket Server 库的 psr-http 实现部分",
"license": "MIT",
"type": "library",
"keywords": [
"php",
"workerman",
"choir",
"swoole"
],
"authors": [
{
"name": "crazywhalecc",
"email": "crazywhalecc@163.com"
}
],
"require": {
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4",
"psr/http-client": "^1.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8",
"friendsofphp/php-cs-fixer": "^3.2",
"phpstan/phpstan": "^1.1",
"phpunit/phpunit": "^9.0 || ^8.0",
"swoole/ide-helper": "^4.8",
"symfony/var-dumper": "^5.3"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Choir\\": "src/Choir"
},
"files": [
"src/Choir/globals.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\Choir\\": "tests/Choir"
}
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"extra": {
"hooks": {
"post-merge": "composer install",
"pre-commit": [
"echo committing as $(git config user.name)",
"composer cs-fix -- --diff"
],
"pre-push": [
"composer cs-fix -- --dry-run --diff",
"composer analyse"
]
}
},
"scripts": {
"post-install-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/cghooks add"
],
"analyse": "phpstan analyse --memory-limit 300M",
"cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix",
"test": "phpunit --no-coverage"
}
}