Luthier-CI: Improved routing + middleware for CodeIgniter 3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: Luthier-CI: Improved routing + middleware for CodeIgniter 3 (/showthread.php?tid=70497) |
Luthier-CI: Improved routing + middleware for CodeIgniter 3 - andersonsalas - 04-17-2018 Hi! I want to share my recently rewritten project: it's called Luthier-CI. What is Luthier-CI? Luthier-CI is a CodeIgniter plugin that enables Laravel-like routing and introduces the concept of Middleware in our applications. Key features
With Luthier-CI we can, for example, write this: PHP Code: Route::group('catalog', function(){ Instead this: PHP Code: $route['catalog/cars/(:any)']['GET'] = 'CarsController/catalog/$1'; ... or use an anonymous function instead a controller: PHP Code: Route::get('test', function(){ ... or even perform the same action with all routes using a middleware: PHP Code: Route::middleware(function(){ More information (Documentation, installation instructions, etc.) View Luthier-CI on GitHub It is a somewhat complex project so any suggestion, opinion, or even donation is welcome! Tested in PHP 5/7 and CodeIgniter 3.1.7 / 3.1.8 (apparently everything works ) RE: Luthier-CI: Improved routing + middleware for CodeIgniter 3 - andersonsalas - 05-13-2018 [Update 13-05-2018] The 0.2.1 version was released recently. Improvements accumulated to date:
More features on the way RE: Luthier-CI: Improved routing + middleware for CodeIgniter 3 - Krycek - 05-13-2018 Wonderful work! Thanks! RE: Luthier-CI: Improved routing + middleware for CodeIgniter 3 - andersonsalas - 06-25-2018 [Update 25-06-2018] Version 0.3.0 Released! it comes with new features:
Screenshots: SimpleAuth default login screen PHP Debug Bar integration Thanks for your comments, we appreciate all of them Github: Luthier CI Documentation: Luthier CI Documentation RE: Luthier-CI: Improved routing + middleware for CodeIgniter 3 - jvandemerwe - 02-03-2019 I am trying to work with Luthier-CI and I must say that I really like the routing part. I have a question about the middleware part. How do I pass variables to a route? I'd like to see something possible like: Code: Route::get('toystory/woody/{category_id}', 'moviesController@cast', [ But I don't want to have the arguments in the controller. So my question is, is this possible? When I do it like above I get always the message: "Unable to find .php in your application/middleware folder". RE: Luthier-CI: Improved routing + middleware for CodeIgniter 3 - takielias - 09-05-2020 This is awesome !!! |