zhamao-framework/composer.json

91 lines
2.8 KiB
JSON
Raw Normal View History

2018-10-29 15:27:06 +08:00
{
2020-03-02 16:14:20 +08:00
"name": "zhamao/framework",
"description": "High performance chat robot and web server development framework",
"minimum-stability": "stable",
2020-05-10 18:27:59 +08:00
"license": "Apache-2.0",
"extra": {
"exclude_annotate": [
"src/ZM"
],
"hooks": {
"post-merge": "composer install",
"pre-commit": [
"echo committing as $(git config user.name)",
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src"
],
"pre-push": [
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src",
"composer analyse"
]
}
},
2020-03-02 16:14:20 +08:00
"authors": [
{
"name": "jerry",
"email": "admin@zhamao.me"
2020-03-02 16:14:20 +08:00
}
],
2020-06-05 13:36:30 +08:00
"prefer-stable": true,
"bin": [
2020-09-29 15:07:43 +08:00
"bin/start",
2022-01-08 20:19:10 +08:00
"bin/phpunit-swoole",
"bin/watcher"
2020-06-05 13:36:30 +08:00
],
2018-10-29 15:27:06 +08:00
"require": {
"php": "^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1",
2018-10-29 15:27:06 +08:00
"ext-json": "*",
2021-02-21 22:17:34 +08:00
"ext-posix": "*",
2021-04-06 01:19:56 +08:00
"doctrine/annotations": "~1.12 || ~1.4.0",
"symfony/polyfill-ctype": "^1.19",
"symfony/polyfill-mbstring": "^1.19",
"symfony/console": "~5.0 || ~4.0 || ~3.0",
"symfony/routing": "~5.0 || ~4.0 || ~3.0",
2021-06-16 00:17:30 +08:00
"zhamao/console": "^1.0",
"zhamao/config": "^1.0",
"zhamao/request": "^1.1",
2021-06-16 00:17:30 +08:00
"zhamao/connection-manager": "^1.0",
"jelix/version": "^2.0",
2021-07-04 15:45:30 +08:00
"league/climate": "^3.6",
2021-07-09 01:38:30 +08:00
"psy/psysh": "@stable",
2021-10-06 18:01:40 +08:00
"doctrine/dbal": "^2.13.1"
},
"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",
2021-04-06 01:19:56 +08:00
"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"
},
"autoload": {
"psr-4": {
2021-07-09 01:39:45 +08:00
"ZM\\": "src/ZM"
2020-08-31 10:11:06 +08:00
},
"files": [
"src/ZM/global_functions.php"
]
},
2022-01-08 20:19:10 +08:00
"autoload-dev": {
"psr-4": {
"Module\\": "src/Module",
"Custom\\": "src/Custom"
}
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
2020-08-31 10:11:06 +08:00
"require-dev": {
2021-06-16 00:17:30 +08:00
"swoole/ide-helper": "@dev",
"phpunit/phpunit": "^8.5 || ^9.0",
"brainmaestro/composer-git-hooks": "^2.8",
"friendsofphp/php-cs-fixer": "^3.2 != 3.7.0",
"phpstan/phpstan": "^1.1"
},
"scripts": {
"post-install-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/cghooks add"
],
"analyse": "phpstan analyse --memory-limit 300M -l 0 ./src",
"cs-fix": "php-cs-fixer fix $1"
}
2021-07-09 01:38:30 +08:00
}