- 在 composer.json 中添加 symfony/console 依赖 - 新增 InstallCommand 控制台命令用于安装路由资源 - 实现服务提供者和配置文件的自动发布 - 自动注册 RouteServiceProvider 到应用配置中 - 支持 Laravel 12.x 和 PHP 8.4+ 版本 - 更新 composer.lock 文件以反映新的依赖关系
44 lines
1.0 KiB
JSON
44 lines
1.0 KiB
JSON
{
|
|
"name": "jltx/routes",
|
|
"description": "采用注解形式的路由系统,以避免在大型项目中维护大静态路由表",
|
|
"minimum-stability": "stable",
|
|
"license": "proprietary",
|
|
"authors": [
|
|
{
|
|
"name": "hui",
|
|
"email": "yeyixianyang@163.com"
|
|
}
|
|
],
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Jltx\\Routes\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Jltx\\Routes\\Tests\\": "tests/"
|
|
}
|
|
},
|
|
"require": {
|
|
"php": "^8.4",
|
|
"illuminate/contracts": "^12.0",
|
|
"illuminate/support": "^12.41",
|
|
"symfony/console": "^8.0"
|
|
},
|
|
"require-dev": {
|
|
"laravel/pint": "^1.26",
|
|
"phpunit/phpunit": "^10.5"
|
|
},
|
|
"scripts": {
|
|
"lint": "vendor/bin/pint",
|
|
"test": "vendor/bin/phpunit"
|
|
},
|
|
"extra": {
|
|
"laravel": {
|
|
"providers": [
|
|
"Jltx\\Routes\\Providers\\RouteServiceProvider"
|
|
]
|
|
}
|
|
}
|
|
}
|