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

Abandoned → [bengor-user/user](/?search=bengor-user%2Fuser)Library[Authentication &amp; Authorization](/categories/authentication)

bengor/user
===========

Lightweight user library developed using Domain-Driven Design

v0.8.1(9y ago)232.4k5MITPHPPHP ^5.5 || ^7.0

Since Oct 27Pushed 9y ago6 watchersCompare

[ Source](https://github.com/BenGorUser/User)[ Packagist](https://packagist.org/packages/bengor/user)[ RSS](/packages/bengor-user/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (19)Used By (0)

BenGorUser
==========

[](#bengoruser)

> Lightweight user PHP library developed using Domain-Driven Design

[![SensioLabsInsight](https://camo.githubusercontent.com/044a6ff40b22f31638e52340c63727d0c30e86a0e8fe43208fadfc04656868e4/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38653336636330342d313137612d343434382d396366372d3162656461646662626335392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/8e36cc04-117a-4448-9cf7-1bedadfbbc59)[![Build Status](https://camo.githubusercontent.com/fc69ff824322cb18fa0a502a31af9b97772901c8fb802d6c391f20b988e22b03/68747470733a2f2f7472617669732d63692e6f72672f42656e476f72557365722f557365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BenGorUser/User)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d3b14c975774319942359200c9c8b59b9f234e3c63e1970c07c947588d6c63f7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42656e476f72557365722f557365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/BenGorUser/User/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/cdc02cb73e12e9d3690722f8b19c00dd7df6e230644bbb09af533aed603a7fde/68747470733a2f2f706f7365722e707567782e6f72672f62656e676f722d757365722f757365722f646f776e6c6f616473)](https://packagist.org/packages/bengor-user/user)[![Latest Stable Version](https://camo.githubusercontent.com/3efcdc7dde308b771ef38ece630d4a20393c5c30f1fef63ff41615de41f7841d/68747470733a2f2f706f7365722e707567782e6f72672f62656e676f722d757365722f757365722f762f737461626c652e737667)](https://packagist.org/packages/bengor-user/user)[![Latest Unstable Version](https://camo.githubusercontent.com/6c322b5e01ad9413664ddbeb5cbe1a84a58c42ad983ed50896e85768f8761b9c/68747470733a2f2f706f7365722e707567782e6f72672f62656e676f722d757365722f757365722f762f756e737461626c652e737667)](https://packagist.org/packages/bengor-user/user)

BenGorUser is **lightweight, flexible and easy to use** user management library. Using **Domain-Driven Design**this library offers a well tested and documented codebase with many common use cases already implemented, such as:

- User registration
    - Basic
    - With confirmation
    - By invitation
- Change password
    - Basic
    - Without old password
    - By request remember password
- Log in / log out
- User removal
- Role management
    - Grant
    - Revoke
- Purge outdated tokens
    - Invitation token
    - Remember password token

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

[](#requirements)

PHP &gt;= 5.5

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

[](#installation)

The easiest way to install this component is using [Composer](http://getcomposer.org)

```
$ composer require bengor-user/user
```

Documentation
-------------

[](#documentation)

All the documentation is stored in the `docs` folder.

[Show me the docs!](docs/index.md)

Tests
-----

[](#tests)

This library is completely tested by **[PHPSpec](http://www.phpspec.net/), SpecBDD framework for PHP**.

Run the following command to launch tests:

```
$ vendor/bin/phpspec run -fpretty
```

Contributing
------------

[](#contributing)

If you have any doubt or maybe you want to share some opinion, you can use our **Gitter** chat.

[![Join the chat at https://gitter.im/BenGorUser/User](https://camo.githubusercontent.com/7c384e7dff627bc25687c2976b4ff7e1c87275f4d73f461b7ec1ab826fa58a14/68747470733a2f2f6261646765732e6769747465722e696d2f42656e476f72557365722f557365722e737667)](https://gitter.im/BenGorUser/User?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

BenGorUser uses [Crowdin](https://crowdin.com/) as tool to manage translations so, please help us translating your favorite language via this service. Pull requests about translations will not be accepted.

[![Crowdin](https://camo.githubusercontent.com/fe5982dda41fecd317f7dcb2a01c3ce27f7747d56608dfe76b1e5f9669a620be/68747470733a2f2f64333232637174353834626f346f2e636c6f756466726f6e742e6e65742f62656e676f72757365722f6c6f63616c697a65642e737667)](https://crowdin.com/project/bengoruser)

This library follows PHP coding standards, so pull requests need to execute the Fabien Potencier's [PHP-CS-Fixer](http://cs.sensiolabs.org/). Furthermore, if the PR creates some not-PHP file remember that you have to put the license header manually. In order to simplify we provide a Composer script that wraps all the commands related with this process.

```
$ composer run-script cs
```

There is also a policy for contributing to this project. Pull requests must be explained step by step to make the review process easy in order to accept and merge them. New methods or code improvements must come paired with [PHPSpec](http://www.phpspec.net/) tests.

If you would like to contribute it is a good point to follow Symfony contribution standards, so please read the [Contributing Code](http://symfony.com/doc/current/contributing/code/index.html) in the project documentation. If you are submitting a pull request, please follow the guidelines in the [Submitting a Patch](http://symfony.com/doc/current/contributing/code/patches.html#check-list) section and use the [Pull Request Template](http://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request).

Credits
-------

[](#credits)

This library is created by:

>

**@benatespina** -
**@gorkalaucirica** -

Licensing Options
-----------------

[](#licensing-options)

[![License](https://camo.githubusercontent.com/757a5a49e620ef5578121cd51636fe3787b061492f62db9047e58778eb87ceb3/68747470733a2f2f706f7365722e707567782e6f72672f62656e676f722d757365722f757365722f6c6963656e73652e737667)](https://github.com/BenGorUser/User/blob/master/LICENSE)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.2% 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

Every ~30 days

Recently: every ~71 days

Total

18

Last Release

3336d ago

PHP version history (4 changes)v0.1.0PHP &gt;=5.4

v0.3.0PHP &gt;=5.5

v0.4.3PHP ^5.5|^7.0

v0.5.0PHP ^5.5 || ^7.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/06308bfc15d8774c16d36d727f852c2d29ed8d0d6153637384439747776dc658?d=identicon)[benatespina](/maintainers/benatespina)

---

Top Contributors

[![benatespina](https://avatars.githubusercontent.com/u/3951376?v=4)](https://github.com/benatespina "benatespina (199 commits)")[![gorkalaucirica](https://avatars.githubusercontent.com/u/1749891?v=4)](https://github.com/gorkalaucirica "gorkalaucirica (43 commits)")

---

Tags

ddddomain-driven-designlibraryphpuser-managementusercomponentddd

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[bengor-user/user

Lightweight user library developed using Domain-Driven Design

246.9k3](/packages/bengor-user-user)[saeven/zf3-circlical-user

Complete user entity, rights, and access module for Laminas

3718.7k](/packages/saeven-zf3-circlical-user)[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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