mirror of
https://github.com/crazywhalecc/choir-psr-http.git
synced 2026-03-17 20:24:52 +08:00
71 lines
1.8 KiB
JSON
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",
|
|
"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 fix",
|
|
"test": "phpunit --no-coverage"
|
|
}
|
|
}
|