webman-tech / laravel-monorepo
laravel component for webman monorepo
v13.0.0
2026-11-18 09:02 UTC
Requires
- php: ^8.3
- illuminate/cache: ^13.0
- illuminate/config: ^13.0
- illuminate/console: ^13.0
- illuminate/container: ^13.0
- illuminate/database: ^13.0
- illuminate/events: ^13.0
- illuminate/filesystem: ^13.0
- illuminate/http: ^13.0
- illuminate/pagination: ^13.0
- illuminate/process: ^13.0
- illuminate/redis: ^13.0
- illuminate/translation: ^13.0
- illuminate/validation: ^13.0
- league/flysystem: ^3.0
- webman-tech/common-utils: ^5.0 || dev-main
Requires (Dev)
- alphasnow/aliyun-oss-laravel: ^4.9
- ergebnis/composer-normalize: ^2.45
- monolog/monolog: ^3.8
- overtrue/flysystem-cos: ^5.1
- overtrue/flysystem-qiniu: ^3.2
- pestphp/pest: ^3.7
- phpstan/phpstan: ^2.1
- symfony/cache: ^7.0
- symfony/http-foundation: ^7.0
- symfony/mime: ^7.0
- symfony/translation: ^7.0
- symfony/var-dumper: ^7.0
- symfony/var-exporter: ^7.0
- webman-tech/testing: ^1.1
- webman/console: ^2.1
- webman/database: ^2.1
- webman/redis: ^2.1
- workerman/webman-framework: ^2.1
Suggests
None
Provides
None
Conflicts
None
Replaces
- webman-tech/laravel-cache: v13.0.0
- webman-tech/laravel-console: v13.0.0
- webman-tech/laravel-database: v13.0.0
- webman-tech/laravel-filesystem: v13.0.0
- webman-tech/laravel-http: v13.0.0
- webman-tech/laravel-process: v13.0.0
- webman-tech/laravel-redis: v13.0.0
- webman-tech/laravel-translation: v13.0.0
- webman-tech/laravel-validation: v13.0.0
README
laravel 组件的 monorepo 仓库,大版本随 laravel 的主版本号一致(当前 13.x,要求 PHP >= 8.3)。
开发约定与常用命令见 AGENTS.md。
框架支持
所有组件均可运行在 webman(第一支持优先级) 与非 webman(自研框架 / 标准 PHP 应用)环境下。
通用接入模式:宿主启动时通过 webman-tech/common-utils 的 RuntimeCustomRegister 注册运行时能力
(容器、配置、日志、请求、定时器等),再将 db / redis 等 Manager 绑进容器即可。
完整示例见 e2e/plain-src(一个最小非 webman 宿主应用,随 e2e 测试自动安装运行,命令 composer e2e:test)。
安装
composer require webman-tech/laravel-monorepo
使用
参考各个组件的文档
组件列表
- webman-tech/laravel-cache
- webman-tech/laravel-console
- webman-tech/laravel-database
- webman-tech/laravel-filesystem
- webman-tech/laravel-http
- webman-tech/laravel-process
- webman-tech/laravel-redis
- webman-tech/laravel-translation
- webman-tech/laravel-validation
目录结构
- src: 各个组件目录
- scripts: 辅助 monorepo 的一些常用脚本
- tests: 测试目录
- Fixtures: 测试数据,按照各个组件的目录
- Unit: 单元测试
- Facades: 基本对应每个组件的 facade 入口
- webman: 用于单元测试的一个 webman 极小项目结构
- e2e: 端到端测试
remark
- 11.x 12.x 13.x 是啥
与 laravel 的主版本保持一致
- 开发时如何从 12.x 升级为 13.x
使用脚本:php scripts/upgrade_laravel_version.php 12 13