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

AbandonedArchivedLibrary

fgsl/laminas-user
=================

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

0.2.0(6y ago)11303[1 issues](https://github.com/fgsl/LaminasUser/issues)1AGPL-3.0PHPPHP ^7.2

Since Feb 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fgsl/LaminasUser)[ Packagist](https://packagist.org/packages/fgsl/laminas-user)[ Docs](https://github.com/fgsl/LaminasUser)[ RSS](/packages/fgsl-laminas-user/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (22)Versions (3)Used By (1)

LaminasUser
===========

[](#laminasuser)

Created by Flávio Gomes da Silva Lisboa from ZfcUser

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

[](#introduction)

LaminasUser is a user registration and authentication module for Laminas. Out of the box, LaminasUser works with Laminas\\Db, however alternative storage adapter modules are available (see below). LaminasUser 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 [Laminas Wiki](https://github.com/fgsl/LaminasUser/wiki)

Storage Adapter Modules
-----------------------

[](#storage-adapter-modules)

By default, LaminasUser ships with support for using Laminas\\Db for persisting users.

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

[](#requirements)

- [Laminas](https://github.com/laminas/laminas-mvc-skeleton) (latest master)
- [LaminasBase](https://github.com/fgsl/LaminasBase) (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)

#### By cloning project

[](#by-cloning-project)

1. Install the [LaminasBase](https://github.com/fgsl/LaminasBase) Laminas module by cloning it into `./vendor/`.
2. Clone this project into your `./vendor/` directory.

#### With composer

[](#with-composer)

1. Add this project and [LaminasBase](https://github.com/fgsl/LaminasBase) in your composer.json:

    ```
    "require": {
        "fgsl/laminas-user": "^0.2.0"
    }
    ```
2. Now tell composer to download LaminasUser by running the command:

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

#### Post installation

[](#post-installation)

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

    ```
