twiggy99's avatar

Using routing outside of Laravel without the huge dependency list

Hello,

I need to create a pretty basic app with a few classes and something to route the requests to those classes. I really like Laravel's routing more than everything else but it seems all of Laravels components are very tightly coupled and require each other to work.

Has anyone else managed to get Laravel routing working as a standalone package without the need to include service containers, support helpers, events etc? If so how did you manage it?

0 likes
2 replies
tekmi's avatar
tekmi
Best Answer
Level 23

Hi @twiggy99

Maybe what your are looking for are actually Symfony Components, especially Http Foundation and Routing.

If you dive deeper into the Laravel's source code, you will find that Laravel uses it under the hood.

Or you can explore other, very efficient routings library such as

There are also some posts out there, that try to benchmarks well-known routers - feel free to explore followings websites

Please or to participate in this conversation.