bishwopl/bpluser

An user registration and authentication module for laminas-mvc based on bishwopl/zf3-circlical-user

v2.0.5 2021-01-21 10:03 UTC

This package is auto-updated.

Last update: 2024-04-16 08:44:56 UTC


README

An user registration, authentication and authorization module for Laminas-MVC based on saeven/zf3-circlical-user

Features

  • User Registration
  • Forgot password feature
  • View helpers
  • Laminas Developers Toolbar extention

Requirements

Check composer.json file for requirements.

Installation

  • Run following from project root directory
    $ composer require bishwopl/bpluser
  • Enable module in application.config.php
<?php
return [
    'modules' => [
        // ...
        'CirclicalUser',
        'BplUser',
    ],
    // ...
];
  • Follow configuration step
  • Create database using following command
    ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:create

Configuration

bishwopl/bpluser & bishwopl/zf3-circlical-user

Copy config/bpluser.local.php.dist file to your configuration folder and remove .dist from its name. Module configuration required for bishwopl/zf3-circlical-user is also included in this config file so separate configuration for bishwopl/zf3-circlical-user is not necessary.

Options

Controller plugins

  • Change Password
    $this->bpluser()->changePassword(UserInterface $user, $newPassword);
  • Change Email
    $this->bpluser()->changeEmail(UserInterface $user, $newEmail);
  • Is Email in use
    $this->bpluser()->isEmailInUse($email);
  • Verify password
    $this->bpluser()->verifyPassword(UserInterface $user, $password);
  • Save Profile
    $this->bpluser()->saveProfile(UserInterface $user);
  • Can access action
    $this->bpluser()->isAllowedAction($controllerName, $action);

To do

  • Add Remember Me feature