how to use laravel Route system in another php projects?

855 Views Asked by At

i am creating a php project for myself and it is not on laravel, i install illuminate/database package on my project for using elequent and its work perfectly. now i want to use laravel routing system in my project but can not find any Instructions for this is there any way to use that?

3

There are 3 best solutions below

0
morteza moradi On BEST ANSWER

yes you can use all illuminate component like router in your project.you should see : https://github.com/mattstauffer/Torch Torch is a project to provide instructions and examples for using Illuminate components as standalone components in non-Laravel applications.

1
Bishwajit Adhikary On

I would recommend you do too if you like that. https://symfony.com/doc/current/routing.html#creating-routes

0
Eric Qvarnström On

If you would like another package that works much similar to Laravel routing, take a look at Klein.