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

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

timurturdyev/lmc-user
=====================

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

3.7.x-dev(1y ago)00BSD-3-ClausePHPPHP ^7.3 || ^8.0 || ^8.3

Since Sep 13Pushed 1y agoCompare

[ Source](https://github.com/TimurTurdyev/LmcUser)[ Packagist](https://packagist.org/packages/timurturdyev/lmc-user)[ Docs](https://github.com/LM-Commons/LmcUser)[ RSS](/packages/timurturdyev-lmc-user/feed)WikiDiscussions 3.7.x Synced 1mo ago

READMEChangelogDependencies (22)Versions (1)Used By (0)

LmcUser
=======

[](#lmcuser)

[![Latest Stable Version](https://camo.githubusercontent.com/31d3f022f9521ea8b12ab09838f577543abdf5cae5219d6f353c72dcf84d3dfb/687474703a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d757365722f76)](https://packagist.org/packages/lm-commons/lmc-user)[![Total Downloads](https://camo.githubusercontent.com/d586862973295f312172723831ab6b06207733038c0173e7121e67975678a875/687474703a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d757365722f646f776e6c6f616473)](https://packagist.org/packages/lm-commons/lmc-user)[![Build](https://github.com/visto9259/LmcUser/actions/workflows/build_test.yml/badge.svg)](https://github.com/visto9259/LmcUser/actions/workflows/build_test.yml)[![Dynamic JSON Badge](https://camo.githubusercontent.com/2262e75e4860651584834ddde74a80278f60e867ddb4fc417b797dad55c897fc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466c6d2d636f6d6d6f6e732532466c6d63726261636d766325324670726f7065727469657325324676616c7565732671756572793d253234253542253341312535442e76616c7565266c6162656c3d4d61696e74656e616e6365253230537461747573)](https://camo.githubusercontent.com/2262e75e4860651584834ddde74a80278f60e867ddb4fc417b797dad55c897fc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466c6d2d636f6d6d6f6e732532466c6d63726261636d766325324670726f7065727469657325324676616c7565732671756572793d253234253542253341312535442e76616c7565266c6162656c3d4d61696e74656e616e6365253230537461747573)[![Static Badge](https://camo.githubusercontent.com/4733757db413065eb426cf4f302e61b97405a85e96574e1d9a5d559476379b28/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436861745f6f6e2d536c61636b2d626c7565)](https://join.slack.com/t/lm-commons/shared_invite/zt-2gankt2wj-FTS45hp1W~JEj1tWvDsUHQ)

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 [LmcUser Wiki](https://github.com/LM-Commons/LmcUser/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": {
        "lm-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.

    ```
