Files
hdk-core/composer.json
李东云 c8b454540d build(deps): 更新依赖并添加 PHPSpec 支持
- 添加 Symfony polyfill-php84依赖
- 更新 rector/rector 至最新版本
- 添加 PHPSpec 相关配置和依赖
- 更新 composer.json 配置
- 调整项目结构,添加 spec 目录作为测试源

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
2025-07-07 13:27:25 +08:00

141 lines
3.6 KiB
JSON
Executable File

{
"name": "singularity/hdk-core",
"license": "MIT",
"type": "library",
"description": "Common Hyperf Development Kit",
"extra": {
"hyperf": {
"config": "Singularity\\HDK\\Core\\ConfigProvider"
}
},
"authors": [
{
"name": "李东云",
"email": "dongyun.li@luxcreo.ai"
}
],
"bin": [
"bin/hdk-migrate-core.sh"
],
"require": {
"php": ">=8.1",
"ext-dom": "*",
"ext-libxml": "*",
"ext-redis": "^5.3|^6.0",
"ext-swoole": "*",
"composer/composer": ">=2.0",
"ergebnis/http-method": "^2.5",
"friendsofhyperf/rector": "^0.1.5",
"hyperf/config": "3.1.*",
"hyperf/constants": "3.1.*",
"hyperf/context": "3.1.*",
"hyperf/di": "3.1.*",
"hyperf/framework": "3.1.*",
"hyperf/logger": "3.1.*",
"hyperf/redis": "3.1.*",
"hyperf/resource": "3.1.*",
"hyperf/translation": "3.1.*",
"jetbrains/phpstorm-attributes": "^1.0",
"lmc/http-constants": "^1.2.0",
"myclabs/php-enum": "^1.8.4",
"roave/dont": "^1.6.0",
"symfony/http-foundation": "^6.4",
"symfony/polyfill-php81": "^1.28",
"symfony/polyfill-php82": "^1.28",
"symfony/polyfill-php83": "^1.28",
"symfony/polyfill-php84": "^1.28",
"teapot/status-code": "^1.1.2"
},
"require-dev": {
"alibabacloud/dysmsapi-20170525": "^2.0",
"firebase/php-jwt": "^6.9",
"friendsofhyperf/pest-plugin-hyperf": "3.1.*",
"friendsofphp/php-cs-fixer": "^3.41.1",
"guzzlehttp/guzzle": "^7.8",
"hyperf/crontab": "3.1.*",
"hyperf/database": "3.1.*",
"hyperf/db": "3.1.*",
"hyperf/guzzle": "3.1.*",
"hyperf/session": "3.1.*",
"hyperf/testing": "^3.1",
"hyperf/validation": "3.1.*",
"pestphp/pest": "^2.23",
"phpspec/phpspec": "^7.5",
"phpstan/phpstan": "^1.10.49",
"rector/rector": "*",
"roave/security-advisories": "dev-latest",
"spatie/pest-plugin-test-time": "^2.0",
"swoole/ide-helper": "*",
"symfony/mailer": "^6.4.0",
"symfony/serializer": "^6.4.1"
},
"suggest": {
"firebase/php-jwt": "JWT 鉴权必需",
"hyperf/session": "3.1.*",
"symfony/mailer": "用于发送电子邮件",
"symfony/serializer": "处理 XML 必需",
"ext-dom": "处理 XML 必需",
"ext-libxml": "处理 XML 必需",
"hyperf/guzzle": "3.1.*",
"alibabacloud/dysmsapi-20170525": "阿里云短信服务必需"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"autoload": {
"psr-4": {
"Singularity\\HDK\\Core\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Singularity\\HDK\\Test\\Core\\": "tests/"
}
},
"archive": {
"exclude": [
".idea",
"tests",
"scripts",
"Dockerfile",
".gitignore",
".php-cs-fixer.*",
".phpunit.result.cache",
"phpstan.dist.neon",
"phpunit.xml"
]
},
"minimum-stability": "beta",
"prefer-stable": true,
"scripts": {
"post-root-package-install": [],
"test": [
"rm -rf runtime",
"pest --coroutine --prepend tests/bootstrap.php --colors=always"
],
"cs-fix": "vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
"analyse": "vendor/bin/phpstan analyse $1",
"ci": [
"@analyse publish/ src/ tests/",
"@cs-fix",
"@test",
"echo CI Success"
]
},
"repositories": {
"nest": {
"type": "composer",
"url": "https://nest.doylee.cn/api/packages/HDK/composer"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer/"
}
},
"version": "1.0.0-beta.8"
}