Introduces new core abstractions and module management classes, adds several new modules (modern cache, REST API, SEO enhancement), and removes deprecated/disabled assets and code. Updates vendor dependencies, including Symfony components and php-opencc, and cleans up related files. This refactor improves code organization, extensibility, and modernizes the plugin's architecture.
71 lines
2.2 KiB
JSON
71 lines
2.2 KiB
JSON
{
|
|
"name": "overtrue/php-opencc",
|
|
"description": "中文简繁转换,支持词汇级别的转换、异体字转换和地区习惯用词转换(中国大陆、台湾、香港、日本新字体)。基于 [BYVoid/OpenCC](https://github.com/BYVoid/OpenCC) 数据实现。",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "overtrue",
|
|
"email": "i@overtrue.me"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=8.0",
|
|
"ext-zip": "*",
|
|
"symfony/console": "^5.4|^6.3|^7.0",
|
|
"symfony/process": "^5.4|^6.3|^7.0"
|
|
},
|
|
"require-dev": {
|
|
"brainmaestro/composer-git-hooks": "dev-master",
|
|
"mockery/mockery": "^1.2",
|
|
"phpunit/phpunit": "^9.0",
|
|
"vimeo/psalm": "^4.10",
|
|
"jetbrains/phpstorm-attributes": "^1.0",
|
|
"laravel/pint": "^0.1|^1.10",
|
|
"nunomaduro/termwind": "^1.15"
|
|
},
|
|
"bin": [
|
|
"bin/opencc"
|
|
],
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Overtrue\\PHPOpenCC\\": "src"
|
|
}
|
|
},
|
|
"extra": {
|
|
"hooks": {
|
|
"pre-commit": [
|
|
"composer pint",
|
|
"composer test"
|
|
],
|
|
"pre-push": [
|
|
"composer pint",
|
|
"composer test"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"post-update-cmd": [
|
|
"cghooks remove",
|
|
"cghooks add --ignore-lock",
|
|
"cghooks update"
|
|
],
|
|
"post-merge": "composer install",
|
|
"post-install-cmd": [
|
|
"cghooks remove",
|
|
"cghooks add --ignore-lock",
|
|
"cghooks update"
|
|
],
|
|
"cghooks": "vendor/bin/cghooks",
|
|
"check-style": "vendor/bin/pint ./src ./tests --test",
|
|
"pint": "vendor/bin/pint ./src ./tests",
|
|
"fix-style": "vendor/bin/pint ./src ./tests",
|
|
"test": "phpunit --colors",
|
|
"psalm": "psalm --show-info=true --no-cache",
|
|
"psalm-fix": "psalm --no-cache --alter --issues=MissingReturnType,MissingParamType"
|
|
},
|
|
"scripts-descriptions": {
|
|
"test": "Run all tests.",
|
|
"check-style": "Run style checks (only dry run - no fixing!).",
|
|
"fix-style": "Run style checks and fix violations."
|
|
}
|
|
}
|