-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 [v3 Feature]: Interchangeable router with contribution packages #2202
Comments
It looks very cool. |
This is an idea that I have never seen before. I'm looking forward to it. |
I've tried implementing similar on the top of Goravel Framework I've used |
Hi @ReneWerner87 , I would like to know if you need any help in the flavored fiber versions... I was thinking in something like the adaptor but for the whole app like: package main
import (
"github.com/gofiber/fiber/v2"
"flavours/laravel"
)
func main() {
app := laravel.New(fiber.New())
// now here the router looks like laravel way
app.Listen(":3000")
} So in that way each flavor works as a "proxy" to the real fiber app. Each flavor has its own use cases and syntax. What you think? |
will start with the implementation on wednesday after that i might need help for the adaptor |
current state this feature is bigger than expected and unfortunately will not be developed in v3 we first have to standardize everything step by step our plan is to enable major changes more quickly in the future, as other large software companies have done in recent years so that our breaking changes are not a problem in the future and this can be driven forward slowly |
Feature Description
🗣️ through user feedback we have learned that the syntax and behavior of route registration and expiration is a much discussed topic
depending on which frameworks/programming languages the developers have had good experiences with, they want syntax and behavior that is close to what they know and have had positive experiences with.
💡the idea
is to address the problem by creating the possibility to use different router syntax and/or behavior via contribution packages
with this it should be possible to use different concepts of route registration syntax like a laravel router or other routers like a radix tree router, which has a completely different behavior when processing the routes.
🔢 steps necessary to make it possible
there are no major changes are expected in the future, so that backwards compatibility is always given)
📒 Sidenote:
❔ Not yet defined
app.Router()
Related issues
#2190
#2200
#1829
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: