Luthier is a PHP routing and authentication library trusted by hundreds of developers around the world with more than 30.000 installations since 2017
Get startedCompatible with CodeIgniter and (coming soon with) Symfony
Get Luthier with Composer. No manual or complex steps required.
Minimal performance impact. It's still your application, just a way better!
<?php
# application/routes/web.php
use Luthier\Routing\Route;
use Luthier\Authentication\Authentication as Auth;
Auth::routes();
Route::group('dashboard', function(){
Route::get('/', ['controller' => 'Foo@BarController'])
->name('home')
Route::get('/profile', ['controller' => 'Bar@BarController'])
->name('profile')
});
Write routes using a Laravel-like syntax: route groups, middleware, and much more!
<?php
# application/controllers/SimpleAuthController.php
defined('BASEPATH') OR exit('No direct script access allowed');
use Luthier\Auth\SimpleAuth\Controller as BaseController;
class SimpleAuthController extends BaseController
{
public function getSignupFields()
{
return [ /* ... */ ];
}
}
Add a login form to your application in minutes with SimpleAuth!