Awesome
<p align="center"><img src="https://goravel.s3.us-east-2.amazonaws.com/goravel-word.png" width="300"></p>Forked https://github.com/goravel/framework With support to switch between Gin, Chi and GoFiber along with following features supported.
Additional Features
- 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.
Switch between Chi, Gin or GoFiber
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
...
},
About Goravel
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 .
Main Function
- Config
- Http
- Orm
- Migrate
- Logger
- Cache
- Grpc
- Artisan Console
- Task Scheduling
- Queue
- Event
- Mock
Roadmap
- Optimize experience of microservice
- Orm relationships
- Request validator
- Jwt
Documentation
Online documentation https://www.goravel.dev
To optimize the documentation, please submit a PR to the documentation repository https://github.com/goravel/docs
Group
Welcome more exchanges in Discord.
Tribute Laravel
Goravel and Laravel remain highly consistent, let PHPer play Golang happily without learning a new framework!
License
The Goravel framework is open-sourced software licensed under the MIT license.