PHPackages                             coolcsn/csn-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. [Database &amp; ORM](/categories/database)
4. /
5. coolcsn/csn-user

ActiveLibrary[Database &amp; ORM](/categories/database)

coolcsn/csn-user
================

Authentication based on DoctrineORMModule

0.2.0(12y ago)336.9k34[3 issues](https://github.com/coolcsn/CsnUser/issues)[8 PRs](https://github.com/coolcsn/CsnUser/pulls)BSD-3-ClausePHPPHP &gt;=5.3.3

Since Oct 7Pushed 9y ago10 watchersCompare

[ Source](https://github.com/coolcsn/CsnUser)[ Packagist](https://packagist.org/packages/coolcsn/csn-user)[ Docs](https://github.com/coolcsn/CsnUser)[ RSS](/packages/coolcsn-csn-user/feed)WikiDiscussions master Synced 1mo ago

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

CsnUser
=======

[](#csnuser)

Zend Framework 2 Module

### What is CsnUser?

[](#what-is-csnuser)

CsnUser is a Module for Authentication based on DoctrineORMModule

### What exactly does CsnUser do?

[](#what-exactly-does-csnuser-do)

CsnUser has been created with educational purposes to demonstrate how Authentication can be done. It is fully functional.

CsnUser module consists of:

- Login with remember me
- Registration with Captcha and Confirmation email
- Forgotten password with confirmation email.

In addition, passwords are encrypted using Bcrypt algorithm.

### What's the use again?

[](#whats-the-use-again)

An alternative to ZfcUser with more functionality added.

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

[](#installation)

1. Installation via composer is supported, simply run: `php composer.phar require coolcsn/csn-user:dev-master`. The installed module is located in *./vendor/coolcsn/csn-user*.
2. Create Doctrine Proxy cache directory in APP\_ROOT/data/DoctrineORMModule/Proxy. Be shure to grant write permissions.
3. Add `CsnUser`, `DoctrineModule` and `DoctrineORMModule` in your application configuration at: `./config/application.config.php`. An example configuration may look like the following :

```
'modules' => array(
    'Application',
    'DoctrineModule',
    'DoctrineORMModule',
    'CsnUser'
)

```

Configuration
-------------

[](#configuration)

CsnUser requires setting up a Connection for Doctrine, a simple Mail configuration and importing a database schema.

1. Create a new database (or use an existing one, dedicated to your application).
2. Copy the sample Doctrine configuration from `./vendor/coolcsn/csn-user/config/doctrineorm.local.php.dist` to `./config/autoload` renaming it to **doctrineorm.local.php**. Edit the file, replacing the values (*username*, *password*, etc) with your personal database parameters.
3. Run `./vendor/bin/doctrine-module orm:schema-tool:create` to generate the database schema. Import the sample SQL data (for some default data) located in `./vendor/coolcsn/CsnUser/data/SampleData.sql`. You can easily do that with *PhpMyAdmin* for instance.
4. Copy the sample Mail configuration from `./vendor/coolcsn/csn-user/config/mail.config.local.php.dist` to `./config/autoload` renaming it to **mail.config.local.php**. Edit the file, replacing the values (*host*, *username*, etc) with your SMTP server parameters.
5. Append the contents of `./vendor/coolcsn/CsnUser/data/CsnUser.css` to APP\_ROOT/public/css/styles.css or include `CsnUser.css` into your app.

Options
-------

[](#options)

The CsnUser module has some options to allow you to quickly customize the basic functionality. After installing CsnUser, copy `./vendor/coolcsn/CsnUser/config/csnuser.global.php.dist` to `./config/autoload`, renaming it to **csnuser.global.php** and change the values as desired, following the instructions.

The following options are available:

- **login\_redirect\_route** String value, name of a route in the application which the user will be redirected to after a successful login.
- **logout\_redirect\_route** String value, name of a route in the application which the user will be redirected to after logging out.
- **sender\_email\_adress** String value, email address to set From field of generated emails from module
- **nav\_menu** Bool value, show or hide navigation menu.
- **captcha\_char\_num** Integer Value, number of captcha characters to display.
- **display\_exceptions** Boolean true/false value, set this to true to view possible exceptions details. If you are in production, then set it to false so exceptions get less verbose.

> ### It is ready?
>
> [](#it-is-ready)

Navigate to *\[hostname\]/user* in your browser to view different options for login, registration, forgotten password, etc.

Routes
------

[](#routes)

The following routes are available:

- **user** Welcome view.
- **user/login** User login view.
- **user/register** User register view.
- **user/register/reset-password** User resep password view.
- **user/register/edit-profile** User edit profile view.
- **user/register/change-password** User change password view.
- **user/register/change-email** User change email view.
- **user/register/change-security-question** User change security question view.
- **user/admin** Users admin view.
- **user/admin/create** User admin create view.

Dependencies
------------

[](#dependencies)

This Module depends on the following Modules:

- [Zend Framework 2](https://github.com/zendframework/zf2)
- \[DoctrineORMModule\] () - DoctrineORMModule integrates Doctrine 2 ORM with Zend Framework 2 quickly and easily.

Recommends
----------

[](#recommends)

- [coolcsn/CsnAuthorization](https://github.com/coolcsn/CsnAuthorization) - Authorization compatible for this Registration and Logging.
- [coolcsn/CsnNavigation](https://github.com/coolcsn/CsnNavigation) - Navigation module;
- [coolcsn/CsnCms](https://github.com/coolcsn/CsnCms) - Content management system;

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Total

3

Last Release

4398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e53636eeb1a7343d62c4f66f46bf318faf1041ab5bbfd2a5f87cb8477583010e?d=identicon)[wingman](/maintainers/wingman)

---

Top Contributors

[![schonkov](https://avatars.githubusercontent.com/u/3605034?v=4)](https://github.com/schonkov "schonkov (22 commits)")[![revov](https://avatars.githubusercontent.com/u/4138535?v=4)](https://github.com/revov "revov (21 commits)")[![wingman007](https://avatars.githubusercontent.com/u/203479?v=4)](https://github.com/wingman007 "wingman007 (3 commits)")[![mgscreativa](https://avatars.githubusercontent.com/u/1286632?v=4)](https://github.com/mgscreativa "mgscreativa (1 commits)")

---

Tags

doctrinezf2doctrine-orm-modulecsn-user

### Embed Badge

![Health badge](/badges/coolcsn-csn-user/health.svg)

```
[![Health](https://phpackages.com/badges/coolcsn-csn-user/health.svg)](https://phpackages.com/packages/coolcsn-csn-user)
```

###  Alternatives

[hounddog/doctrine-data-fixture-module

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

37335.4k9](/packages/hounddog-doctrine-data-fixture-module)[coolcsn/csn-authorization

Authorization based on DoctrineORMModule and ACL

143.5k](/packages/coolcsn-csn-authorization)[mamuz/mamuz-blog

Provides blog feature for ZF2 with Doctrine

101.1k1](/packages/mamuz-mamuz-blog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
