https://github.com/goravel/fiber
Fiber driver for Goravel
https://github.com/goravel/fiber
fiber go gofiber
Last synced: about 8 hours ago
JSON representation
Fiber driver for Goravel
- Host: GitHub
- URL: https://github.com/goravel/fiber
- Owner: goravel
- License: mit
- Created: 2023-06-19T09:16:53.000Z (almost 2 years ago)
- Default Branch: v1.3.x
- Last Pushed: 2025-04-16T09:59:27.000Z (7 days ago)
- Last Synced: 2025-04-23T06:50:04.838Z (about 8 hours ago)
- Topics: fiber, go, gofiber
- Language: Go
- Homepage:
- Size: 462 KB
- Stars: 17
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-fiber - goravel/fiber - Laravel similar boilerplate with support for Fiber. (🚧 Boilerplates / 🌱 Third Party)
README
# Fiber
[](https://pkg.go.dev/github.com/goravel/fiber)
[](https://go.dev/)
[](https://github.com/goravel/fiber/releases)
[](https://github.com/goravel/fiber/actions)
[](https://goreportcard.com/report/github.com/goravel/fiber)
[](https://codecov.io/gh/goravel/fiber)
Fiber http driver for Goravel.
## Version
| goravel/fiber | goravel/framework |
|---------------|-------------------|
| v1.3.x | v1.15.x |
| v1.2.x | v1.14.x |
| v1.1.x | v1.13.x |## Install
1. Add package
```
go get -u github.com/goravel/fiber
```2. Register service provider
```
// config/app.go
import "github.com/goravel/fiber""providers": []foundation.ServiceProvider{
...
&fiber.ServiceProvider{},
}
```3. Add fiber config to `config/http.go` file
```
// config/http.go
import (
fiberfacades "github.com/goravel/fiber/facades"
"github.com/gofiber/template/html/v2"
"github.com/gofiber/fiber/v2"
)"default": "fiber",
"drivers": map[string]any{
"fiber": map[string]any{
// prefork mode, see https://docs.gofiber.io/api/fiber/#config
"prefork": false,
// Optional, default is 4096 KB
"body_limit": 4096,
"header_limit": 4096,
"route": func() (route.Route, error) {
return fiberfacades.Route("fiber"), nil
},
// Optional, default is "html/template"
"template": func() (fiber.Views, error) {
return html.New("./resources/views", ".tmpl"), nil
},
},
},
```## Testing
Run command below to run test:
```
go test ./...
```