mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
Signal handling fixes: - SignalListener: add SIGHUP/SIGTERM handling for both Swoole and Workerman drivers in master and worker processes - Prevent 100% CPU when IDE terminal is closed by ensuring graceful shutdown on terminal hangup PHP version support: - Widen PHP constraint to 8.3, 8.4, 8.5 - Bump doctrine/dbal from ^2.13.1 to ^4.4 - Bump php-cs-fixer to ^3.64, phpstan to ^1.12 - Bump swoole/ide-helper to ^5.0 - Drop phpunit ^8.5 (EOL), keep ^9.0 CI updates: - actions/checkout@v3 → @v4 (Node.js 20 deprecated) - Bump static analysis/code style PHP from 8.1 to 8.3
106 lines
3.2 KiB
JSON
106 lines
3.2 KiB
JSON
{
|
|
"name": "zhamao/framework",
|
|
"description": "High performance chat robot and web server development framework",
|
|
"license": "Apache-2.0",
|
|
"authors": [
|
|
{
|
|
"name": "jerry",
|
|
"email": "admin@zhamao.me"
|
|
},
|
|
{
|
|
"name": "sunxyw",
|
|
"email": "dev@sunxyw.xyz"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5",
|
|
"ext-json": "*",
|
|
"ext-tokenizer": "*",
|
|
"doctrine/dbal": "^2.13.1",
|
|
"dragonmantank/cron-expression": "^3.3",
|
|
"jelix/version": "^2.0",
|
|
"koriym/attributes": "^1.0",
|
|
"nunomaduro/collision": "^6.3",
|
|
"onebot/libonebot": "^0.6",
|
|
"php-di/php-di": "^7",
|
|
"psr/container": "^2.0",
|
|
"psr/simple-cache": "^3.0",
|
|
"psy/psysh": "^0.11.8",
|
|
"symfony/console": "^6.0",
|
|
"symfony/polyfill-ctype": "^1.19",
|
|
"symfony/polyfill-mbstring": "^1.19",
|
|
"symfony/routing": "~6.0 || ~5.0 || ~4.0",
|
|
"vlucas/phpdotenv": "^5.5"
|
|
},
|
|
"require-dev": {
|
|
"captainhook/captainhook": "^5.10",
|
|
"captainhook/plugin-composer": "^5.3",
|
|
"friendsofphp/php-cs-fixer": "^3.64",
|
|
"jangregor/phpstan-prophecy": "^1.0",
|
|
"jetbrains/phpstorm-attributes": "^1.0",
|
|
"mikey179/vfsstream": "^1.6",
|
|
"phpspec/prophecy-phpunit": "^2.3",
|
|
"phpstan/extension-installer": "^1.1",
|
|
"phpstan/phpstan": "^1.12",
|
|
"phpstan/phpstan-deprecation-rules": "^1.0",
|
|
"phpstan/phpstan-phpunit": "^1.1",
|
|
"phpunit/phpunit": "^9.0",
|
|
"roave/security-advisories": "dev-latest",
|
|
"swoole/ide-helper": "^5.0"
|
|
},
|
|
"replace": {
|
|
"symfony/polyfill-php80": "*"
|
|
},
|
|
"suggest": {
|
|
"ext-ctype": "Use C/C++ extension instead of polyfill will be more efficient",
|
|
"ext-mbstring": "Use C/C++ extension instead of polyfill will be more efficient",
|
|
"ext-pdo_mysql": "If you use mysql in framework, you will need this extension",
|
|
"ext-redis": "If you use Redis in framework, you will need this extension",
|
|
"league/climate": "Display columns and status in terminal"
|
|
},
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"autoload": {
|
|
"psr-4": {
|
|
"ZM\\": "src/ZM"
|
|
},
|
|
"files": [
|
|
"src/Globals/global_functions.php",
|
|
"src/Globals/global_defines_app.php",
|
|
"src/Globals/global_class_alias.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Module\\": "src/Module",
|
|
"Tests\\": "tests"
|
|
}
|
|
},
|
|
"bin": [
|
|
"bin/phpunit-zm",
|
|
"bin/zhamao",
|
|
"bin/zhamao.bat"
|
|
],
|
|
"config": {
|
|
"allow-plugins": {
|
|
"phpstan/extension-installer": true,
|
|
"captainhook/plugin-composer": true
|
|
},
|
|
"optimize-autoloader": true,
|
|
"sort-packages": true
|
|
},
|
|
"extra": {
|
|
"zm": {
|
|
"exclude-annotation-path": [
|
|
"src/ZM",
|
|
"tests"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"analyse": "phpstan analyse --memory-limit 300M",
|
|
"cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix",
|
|
"test": "bin/phpunit-zm --no-coverage"
|
|
}
|
|
}
|