Forked https://github.com/goravel/framework With support to switch between Gin, Chi and GoFiber along with following features supported.
- Switable Routers (Currently Chi, Go-Gonic and Gofiber)
- Support for template engine for views (Currently
html/template
supported) - Support for static files
- Change in API for context, request and response to support various routers in future.
- Introduction of routes for Web and API including inline middlewares for routes.
In config/app.go
, in ServiceProvider list change route.ServiceProvider
accordingly as
"providers": []contracts.ServiceProvider{
...
/*&route.ServiceProvider{Engine: fiberRoute.New(fiber.Config{
Views: view.New("resources/views", ".html"),
})},*/
/*&route.ServiceProvider{Engine: ginRoute.New(ginRoute.Config{
View: view.New("resources/views", ".html"),
})},*/
&route.ServiceProvider{Engine: route.NewChi(http.ChiConfig{
View: view.New("resources/views", ".html"),
})},
// &route.ServiceProvider{}, // Default Chi (standard net/http) is used: https://github.com/sujit-baniya/chi
...
},
Goravel is a web application framework with complete functions and good scalability. As a starting scaffolding to help Golang developers quickly build their own applications.
IMPORTANT:Goravel v1 has been greatly upgraded and refactored, not compatible with v0, the v0 version is no longer updated and maintained, but its documentation can be found on v0 .
- Config
- Http
- Orm
- Migrate
- Logger
- Cache
- Grpc
- Artisan Console
- Task Scheduling
- Queue
- Event
- Mock
- Optimize experience of microservice
- Orm relationships
- Request validator
- Jwt
Online documentation https://www.goravel.dev
To optimize the documentation, please submit a PR to the documentation repository https://github.com/goravel/docs
Welcome more exchanges in Discord.
Goravel and Laravel remain highly consistent, let PHPer play Golang happily without learning a new framework!
The Goravel framework is open-sourced software licensed under the MIT license.