goravel/goravel

GitHub: goravel/goravel

Goravel 是一个风格对标 Laravel 的全功能 Golang Web 应用框架,旨在帮助开发者快速构建可扩展的应用。

Stars: 4742 | Forks: 264

Logo [![Doc](https://pkg.go.dev/badge/github.com/goravel/framework)](https://pkg.go.dev/github.com/goravel/framework) [![Go](https://img.shields.io/github/go-mod/go-version/goravel/framework)](https://go.dev/) [![Release](https://img.shields.io/github/release/goravel/framework.svg)](https://github.com/goravel/framework/releases) [![Test](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/9b6a1ea549121045.svg)](https://github.com/goravel/framework/actions) [![Report Card](https://goreportcard.com/badge/github.com/goravel/framework)](https://goreportcard.com/report/github.com/goravel/framework) [![Codecov](https://codecov.io/gh/goravel/framework/branch/master/graph/badge.svg)](https://codecov.io/gh/goravel/framework) ![License](https://img.shields.io/github/license/goravel/framework)
English | [中文](./README_zh.md) ## 关于 Goravel Goravel 是一个功能齐全、可扩展的 Web 应用框架,提供了一个起步脚手架,帮助 Gopher 快速构建应用。 该框架的风格与 [Laravel](https://laravel.com/) 保持一致,因此 PHP 开发者无需学习新的框架即可继续享受使用 Golang 的乐趣,谨以此向 Laravel 致敬! 欢迎 Star、PR 和 Issue! ## 文档 在线文档 [https://www.goravel.dev](https://www.goravel.dev) 示例 [https://github.com/goravel/example](https://github.com/goravel/example) ## 主要功能 | 模块名称 | 描述 | |-------------|-------------| | [Artisan Console](https://www.goravel.dev/digging-deeper/artisan-console.html) | 用于应用管理和自动化的 CLI 命令行接口 | | [Authentication](https://www.goravel.dev/security/authentication.html) | 使用 JWT 和 Session 驱动的用户身份验证 | | [Authorization](https://www.goravel.dev/security/authorization.html) | 使用策略和门面进行基于权限的访问控制 | | [Cache](https://www.goravel.dev/digging-deeper/cache.html) | 使用内存、Redis 或自定义驱动存储和检索数据 | | [Carbon](https://www.goravel.dev/digging-deeper/helpers.html) | 用于日期和时间操作的辅助函数 | | [Config](https://www.goravel.dev/getting-started/configuration.html) | 从文件和环境变量进行应用配置管理 | | [Crypt](https://www.goravel.dev/security/encryption.html) | 安全的数据加密和解密工具 | | [DB](https://www.goravel.dev/database/getting-started.html) | 数据库查询构造器 | | [Event](https://www.goravel.dev/digging-deeper/event.html) | 应用事件分发和监听系统 | | [Factory](https://www.goravel.dev/orm/factories.html) | 生成用于测试的伪造模型数据 | | [FileStorage](https://www.goravel.dev/digging-deeper/filesystem.html) | 跨多种驱动的文件上传、下载和存储 | | [Grpc](https://www.goravel.dev/the-basics/grpc.html) | 高性能 gRPC 服务端和客户端实现 | | [Hash](https://www.goravel.dev/security/hashing.html) | 安全的密码哈希 | | [Http](https://www.goravel.dev/the-basics/routing.html) | HTTP 路由、控制器和中间件管理 | | [Http Client](https://www.goravel.dev/digging-deeper/http-client.html) | 向外部 API 和服务发起 HTTP 请求 | | [Localization](https://www.goravel.dev/digging-deeper/localization.html) | 多语言翻译和区域设置管理 | | [Logger](https://www.goravel.dev/the-basics/logging.html) | 将应用日志记录到文件、控制台或外部服务 | | [Mail](https://www.goravel.dev/digging-deeper/mail.html) | 通过 SMTP 或基于队列的投递发送邮件 | | [Mock](https://www.goravel.dev/testing/mock.html) | 为 facade 和依赖创建测试 mock | | [Migrate](https://www.goravel.dev/database/migrations.html) | 数据库结构变更的版本控制 | | [Orm](https://www.goravel.dev/orm/getting-started.html) | 用于数据库操作的优雅 Orm 实现 | | [Package Development](https://www.goravel.dev/digging-deeper/package-development.html) | 构建可复用的 package 以扩展框架功能 | | [Process](https://www.goravel.dev/digging-deeper/process.html) | 围绕 Go 标准 os/exec package 的富有表现力且优雅的 API | | [Queue](https://www.goravel.dev/digging-deeper/queues.html) | 将耗时的任务推迟到后台 job 处理 | | [Seeder](https://www.goravel.dev/database/seeding.html) | 使用测试或初始数据填充数据库表 | | [Session](https://www.goravel.dev/the-basics/session.html) | 跨 HTTP 请求管理用户 session 数据 | | [Task Scheduling](https://www.goravel.dev/digging-deeper/task-scheduling.html) | 使用类似 cron 的表达式调度周期性任务 | | [Testing](https://www.goravel.dev/testing/getting-started.html) | HTTP 测试、mock 和断言工具 | | [Validation](https://www.goravel.dev/the-basics/validation.html) | 使用规则验证传入的请求数据 | | [View](https://www.goravel.dev/the-basics/views.html) | 用于 HTML 响应的模板渲染引擎 | ## 与 Laravel 对比 [查看详情](https://www.goravel.dev/prologue/compare-with-laravel.html) ## 路线图 [查看详情](https://github.com/goravel/goravel/issues?q=is%3Aissue+is%3Aopen) ## 优秀扩展包 [查看详情](https://www.goravel.dev/getting-started/packages.html) ## 交流群 欢迎在 Discord 中进行更多讨论。 [https://discord.gg/cFc5csczzS](https://discord.gg/cFc5csczzS) ## 许可证 Goravel 框架是根据 [MIT 许可证](https://opensource.org/licenses/MIT) 开源发布的软件。
标签:API开发, Golang, Laravel风格, LLM鲁棒性, Python工具, Web应用脚手架, Web开发框架, 后端开发, 安全编程, 搜索引擎查询, 日志审计