PHPackages                             rarog/user-authenticator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rarog/user-authenticator

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

rarog/user-authenticator
========================

A generic user registration and authentication module for Laminas. Supports Laminas\\Db.

102PHP

Since Apr 13Pushed 6y ago2 watchersCompare

[ Source](https://github.com/rarog/user-authenticator)[ Packagist](https://packagist.org/packages/rarog/user-authenticator)[ RSS](/packages/rarog-user-authenticator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

UserAuthenticator
=================

[](#userauthenticator)

[![Build Status](https://camo.githubusercontent.com/13bac5a7094fc000f62c38ecb6cedf5cb9b4492bdf90270ab8a86b54128b3224/68747470733a2f2f7472617669732d63692e6f72672f7261726f672f757365722d61757468656e74696361746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rarog/user-authenticator)[![Coverage Status](https://camo.githubusercontent.com/61dd3865728c1767fd1ceeb8355b3164699328e88e813437915040a43a3ff710/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7261726f672f757365722d61757468656e74696361746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/rarog/user-authenticator?branch=master)

Based on ZfcUser by Evan Coury and the ZF-Commons team

Introduction
------------

[](#introduction)

UserAuthenticator is a user registration and authentication module for Laminas. UserAuthenticator provides the foundations for adding user authentication and registration to your Laminas site. It is designed to be very simple and easy to extend.

Requirements
------------

[](#requirements)

- [Laminas](https://getlaminas.org/).

If you are looking for versions based on ZendFramework, please look to the original [ZfcUser](https://github.com/ZF-Commons/ZfcUser/).

Features / Goals
----------------

[](#features--goals)

- Authenticate via username, email, or both (can opt out of the concept of username and use strictly email)
- User registration
- Forms protected against CSRF
- Robust event system to allow for extending
- Provide ActionController plugin and view helper

Installation
------------

[](#installation)

### Main Setup

[](#main-setup)

#### Via composer

[](#via-composer)

Install the model using [Composer](https://getcomposer.org):

```
$ composer require rarog/user-authenticator
```

#### Post installation

[](#post-installation)

1. Enabling it in your `application.config.php`file.

    ```
