PHPackages                             laminas-commons/lmc-user - 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. laminas-commons/lmc-user

Abandoned → [lm-commons/lmc-user](/?search=lm-commons%2Flmc-user)ArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

laminas-commons/lmc-user
========================

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

3.2.3(5y ago)5788↓100%2[1 issues](https://github.com/Laminas-Commons/LmcUser/issues)[3 PRs](https://github.com/Laminas-Commons/LmcUser/pulls)2BSD-3-ClausePHPPHP ^7.3

Since Feb 7Pushed 5y ago4 watchersCompare

[ Source](https://github.com/Laminas-Commons/LmcUser)[ Packagist](https://packagist.org/packages/laminas-commons/lmc-user)[ Docs](https://github.com/Laminas-Commons/LmcUser)[ RSS](/packages/laminas-commons-lmc-user/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (22)Versions (26)Used By (2)

> **Important**: This respository is abandoned.
>
> The library was moved to [LM-Commons/LmcUser](https://github.com/LM-Commons/LmcUser)

LmcUser
=======

[](#lmcuser)

[![Build Status](https://camo.githubusercontent.com/a76252edec832514f3e03f23f5808bf86dba056ee245ff76a623b824e3a00492/68747470733a2f2f7472617669732d63692e636f6d2f4c616d696e61732d436f6d6d6f6e732f4c6d63557365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Laminas-Commons/LmcUser.svg?branch=master)[![Code Coverage](https://camo.githubusercontent.com/4cf4c8f1d3caee8e4091ff8a7f2dad1e119fb56f33c3b02bc7f889292ae154fe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c616d696e61732d436f6d6d6f6e732f4c6d63557365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Laminas-Commons/LmcUser/badges/quality-score.png?b=master)[![Gitter](https://camo.githubusercontent.com/dec40076242e9fa28932f1d7bc2dcf6de60623c9b564d26d2fde93879b67ffb9/68747470733a2f2f6261646765732e6769747465722e696d2f4c616d696e6173436f6d6d6f6e732f636f6d6d756e6974792e737667)](https://gitter.im/LaminasCommons/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

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

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

[](#introduction)

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

More information and examples are available on the original [ZfcUser Wiki](https://github.com/ZF-Commons/ZfcUser/wiki)

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

[](#requirements)

- [Laminas](https://github.com/laminas/) (latest master)

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

[](#features--goals)

- Authenticate via username, email, or both (can opt out of the concept of username and use strictly email) \[COMPLETE\]
- User registration \[COMPLETE\]
- Forms protected against CSRF \[COMPLETE\]
- Out-of-the-box support for Doctrine2 *and* Laminas\\Db \[COMPLETE\]
- Robust event system to allow for extending \[COMPLETE\]
- Provide ActionController plugin and view helper \[COMPLETE\]

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

[](#installation)

### Main Setup

[](#main-setup)

#### With composer

[](#with-composer)

1. Add this project in your composer.json:

    ```
    "require": {
        "laminas-commons/lmc-user": "^3.1"
    }
    ```
2. Now tell composer to download LmcUser by running the command:

    ```
    $ php composer.phar update
    ```

#### Post installation

[](#post-installation)

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

    ```
