technobureau/mezzio-pdo-auth

PDO Baed Authentication for Mezzio

dev-main 2022-01-07 16:50 UTC

This package is auto-updated.

Last update: 2024-11-07 23:41:41 UTC


README

It's using mezzio authentication based on PDO Adapter. For migration or table creation using doctrine orm

  • Add below entry on routes.php to register router for authentication

    (new TechnoBureau\mezzioPDOAuth\ConfigProvider())->registerRoutes($app, '/user');

  • Add Below Entry on pipeline.php before RouteMiddleware to register middleware globally for all routes.

    $app->pipe(SessionMiddleware::class); $app->pipe(FlashMessageMiddleware::class);

  • Add below entry on pipeline.php before DispatchMiddleware to register middleware globally for all routers.

    $app->pipe(UserMiddleware::class);