PHP code example of bishwopl / bpluser

1. Go to this page and download the library: Download bishwopl/bpluser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bishwopl / bpluser example snippets



return [
    'modules' => [
        // ...
        'CirclicalUser',
        'BplUser',
    ],
    // ...
];

    $this->bpluser()->changePassword(UserInterface $user, $newPassword);

    $this->bpluser()->changeEmail(UserInterface $user, $newEmail);

    $this->bpluser()->isEmailInUse($email);

    $this->bpluser()->verifyPassword(UserInterface $user, $password);

    $this->bpluser()->saveProfile(UserInterface $user);

    $this->bpluser()->isAllowedAction($controllerName, $action);