init(core): 初始化代码

This commit is contained in:
李东云
2022-12-19 17:28:55 +08:00
parent a13779ab3f
commit f564d01766
52 changed files with 9043 additions and 943 deletions

View File

@@ -1,44 +1,94 @@
{
"name": "singularity/php-package-boilperplate",
"name": "singularity/hdk-core",
"license": "MIT",
"type": "library",
"description": "PHP 通用包模板",
"description": "Common Hyperf Development Kit",
"extra": {
"hyperf": {
"config": "Singularity\\HDK\\ConfigProvider"
}
},
"require": {
"php": "~8.0",
"ext-redis": "^5.3",
"ext-swoole": "*",
"composer/composer": ">=2.0",
"ergebnis/http-method": "^2.2",
"hyperf/config": "^2.2",
"hyperf/constants": "^2.2",
"hyperf/context": "^2.2",
"hyperf/database": "^2.2",
"hyperf/di": "^2.2",
"hyperf/framework": "^2.2",
"hyperf/http-server": "^2.2",
"hyperf/logger": "^2.2",
"hyperf/redis": "^2.2",
"hyperf/resource": "^2.2",
"hyperf/translation": "^2.2",
"jetbrains/phpstorm-attributes": "^1.0",
"lmc/http-constants": "^1.2",
"myclabs/php-enum": "^1.8",
"roave/dont": "^1.5",
"symfony/polyfill-php81": "^1.26",
"teapot/status-code": "^1.1"
},
"require-dev": {
"swoole/ide-helper": "*",
"guzzlehttp/guzzle": "^7.4",
"firebase/php-jwt": "^6.1",
"hyperf/session": "^2.2",
"hyperf/validation": "^2.2",
"symfony/mailer": "^6.0",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"alibabacloud/dysmsapi-20170525": "^2.0.9"
},
"suggest": {
"firebase/php-jwt": "JWT 鉴权必需",
"hyperf/session": "Session 鉴权必需",
"symfony/mailer": "用于发送电子邮件",
"guzzlehttp/guzzle": "需要发起 http 请求时必需",
"alibabacloud/dysmsapi-20170525": "阿里云短信服务必需"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"secure-http": false
},
"autoload": {
"psr-4": {
"Singularity\\HDK\\": "src/"
"Singularity\\HDK\\Core\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Example\\": "tests/"
"Singularity\\HDK\\Test\\\\Core\\": "tests/"
}
},
"require": {
"php": "^8.0",
"composer/composer": "~2.0.14"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"extra": [],
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-root-package-install": [],
"test": "vendor/bin/phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always",
"cs-fix": "php-cs-fixer fix $1",
"analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config"
},
"repositories": {
"lux-map": {
"type": "composer",
"url": "https://satis.luxcreo.cn/"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer"
"url": "https://mirrors.aliyun.com/composer/"
},
"packagist-tx": {
"type": "composer",
"url": "https://mirrors.cloud.tencent.com/composer/"
},
"packagist-hw": {
"type": "composer",
"url": "https://repo.huaweicloud.com/repository/php/"
}
}
}