PHPackages                             xelax90/zf-user-entity - 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. xelax90/zf-user-entity

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

xelax90/zf-user-entity
======================

Provides a user and role entity to work with ZfcUser, Doctrine 2 and BjyAuthorize

1.0(9y ago)0251GPLv2

Since Dec 10Compare

[ Source](https://github.com/xelax90/zf-user-entity)[ Packagist](https://packagist.org/packages/xelax90/zf-user-entity)[ RSS](/packages/xelax90-zf-user-entity/feed)WikiDiscussions Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (1)

User module
===========

[](#user-module)

This module provides configuration and entities for ZfcUser, DoctrineORM and BjyAuthorize. The user entity also implements the LocaleUserInterface required by xelax90/zf2-language-route.

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

[](#installation)

Installation of XelaxUserModule uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
composer require xelax90/zf-user-module
```

Then add `XelaxLanguageRoute` to your `config/application.config.php` and run the doctrine schema update to create the database table:

```
php vendor/bin/doctrine-module orm:schema-tool:update --force
```

Now copy the provided `vendor/xelax90/zf-user-module/config/xelax-user-module.global.php` into your `config/autoload` directory. This file provides the basic configuration for ZfcUser, DoctrineORM and BjyAuthorize to work with this module. This file does not contain all ZfcUser configuration options. Please refer to the ZfcUser [documentation](https://github.com/ZF-Commons/ZfcUser) or [configuration](https://github.com/ZF-Commons/ZfcUser/blob/2.x/config/zfcuser.global.php.dist)for more details.

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

[](#configuration)

You can configure this module in the `config/autoload/xelax-user-module.global.php`file. All options are described there.

The user state in ZfcUser is enabled and is treated as a bitmask. The least significant bit is always the 'Login Allowed' state. Other modules can use other bits to store additional information. It is assumed, that only fife bits are used. You can adjust this number in the `allowed_login_states` configuration option.

Custom user entity
------------------

[](#custom-user-entity)

If you want to add attributes to the user entity, you can simply follow these steps:

1. Create your entity in your namespace and subclass `\XelaxUserEntity\Entity\User`. Don't forget the Doctrine annotations
2. Change `user_entity_class` configuration option in `config/autoload/xelax-user-entity.global.php` to your entity class

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

3488d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1559538?v=4)[xelax90](/maintainers/xelax90)[@xelax90](https://github.com/xelax90)

---

Top Contributors

[![xelax90](https://avatars.githubusercontent.com/u/1559538?v=4)](https://github.com/xelax90 "xelax90 (4 commits)")

### Embed Badge

![Health badge](/badges/xelax90-zf-user-entity/health.svg)

```
[![Health](https://phpackages.com/badges/xelax90-zf-user-entity/health.svg)](https://phpackages.com/packages/xelax90-zf-user-entity)
```

###  Alternatives

[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21674.9k3](/packages/socalnick-scn-social-auth)[goalio/goalio-forgotpassword

Adding Forgot Password functionalitiy to ZfcUser

4362.3k1](/packages/goalio-goalio-forgotpassword)[goalio/goalio-rememberme

Adding Remember Me functionalitiy to ZfcUser

3243.7k3](/packages/goalio-goalio-rememberme)[mtudor/zfc-user-impersonate

Facilitate impersonation of other users in ZfcUser.

10118.4k](/packages/mtudor-zfc-user-impersonate)[hrevert/ht-user-registration

A Zend Framework 2 module which extends the registration feature of ZfcUser with email address verification

144.8k2](/packages/hrevert-ht-user-registration)

PHPackages © 2026

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