{ "name": "singularity/hdk-boilerplate", "license": "MIT", "type": "library", "description": "HDK 包模板", "authors": [ { "name": "李东云", "email": "dongyun.li@luxcreo.ai" } ], "extra": { "hyperf": { "config": "Singularity\\HDK\\Boilerplate\\ConfigProvider" }, "hooks": { "config": { "stop-on-failure": [ "pre-push" ] }, "pre-push": [ "echo committing as $(git config user.name)", "docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.0-swoole composer ci" ] } }, "autoload": { "psr-4": { "Singularity\\HDK\\Boilerplate\\": "src/" } }, "autoload-dev": { "psr-4": { "Singularity\\HDK\\Test\\Boilerplate\\": "tests/" } }, "require": { "php": "^8.0", "composer/composer": ">=2.0", "singularity/hdk-core": "^0.2.9", "symfony/polyfill-php81": "^1.27" }, "require-dev": { "brainmaestro/composer-git-hooks": "^2.8", "friendsofphp/php-cs-fixer": "^3.0", "hyperf/devtool": "3.0.*", "hyperf/testing": "3.0.*", "pestphp/pest": "^1.22", "phpstan/phpstan": "^1.10.6", "swoole/ide-helper": "^4.5" }, "suggest": { "singularity/hdk-auth": "用户、鉴权相关逻辑必需", "singularity/hyperf-saml": "接入单点登录必需" }, "prefer-stable": true, "config": { "optimize-autoloader": true, "sort-packages": true, "secure-http": false, "allow-plugins": { "pestphp/pest-plugin": true } }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "test": [ "rm -rf runtime", "Composer\\Config::disableProcessTimeout", "co-phpunit --prepend test/bootstrap.php -c phpunit.xml --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 --ci", "echo CI Success" ] }, "repositories": { "lux-map": { "type": "composer", "url": "https://satis.luxcreo.cn/" }, "packagist": { "type": "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/" } } }