PHPackages                             mouf/security.daos.tdbm - 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. [Security](/categories/security)
4. /
5. mouf/security.daos.tdbm

AbandonedArchivedMouf-library[Security](/categories/security)

mouf/security.daos.tdbm
=======================

This package contains a basic user/role/right database model for TDBM.

v1.2.1(3y ago)122.4k3MITPHPPHP ^8.0

Since Apr 25Pushed 3y ago3 watchersCompare

[ Source](https://github.com/thecodingmachine/security.daos.tdbm)[ Packagist](https://packagist.org/packages/mouf/security.daos.tdbm)[ Docs](http://mouf-php.com/packages/mouf/security.daos.tdbm)[ RSS](/packages/mouf-securitydaostdbm/feed)WikiDiscussions 1.2 Synced 3w ago

READMEChangelog (2)Dependencies (7)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/6e24bcdab7f1daf060c6fc876d3a47e38c73d36137d1cb3a7b1efdfd0614ac1f/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f73656375726974792e64616f732e7464626d2f762f737461626c65)](https://packagist.org/packages/mouf/security.daos.tdbm)[![Total Downloads](https://camo.githubusercontent.com/24d3dcdcc596e97614b828928f8bf24e57ff44b2791deea52e5dbb3f07e1be58/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f73656375726974792e64616f732e7464626d2f646f776e6c6f616473)](https://packagist.org/packages/mouf/security.daos.tdbm)[![Latest Unstable Version](https://camo.githubusercontent.com/798b4f83a5ca717ade26abd0bde84e2a6bf80e2ba799029cedac8a26a0819477/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f73656375726974792e64616f732e7464626d2f762f756e737461626c65)](https://packagist.org/packages/mouf/security.daos.tdbm)[![License](https://camo.githubusercontent.com/e38eeb52d909990d5631e1de00a90dca1243af7f4896e951852bacffc2435904/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f73656375726974792e64616f732e7464626d2f6c6963656e7365)](https://packagist.org/packages/mouf/security.daos.tdbm)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5cf1a225b677535fdec4abb285824c143fc0a86e5beb35281bae586895b63161/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865636f64696e676d616368696e652f73656375726974792e64616f732e7464626d2f6261646765732f7175616c6974792d73636f72652e706e673f623d312e30)](https://scrutinizer-ci.com/g/thecodingmachine/security.daos.tdbm/?branch=1.0)

TDBM DAOs for Mouf security
===========================

[](#tdbm-daos-for-mouf-security)

What is it?
-----------

[](#what-is-it)

This package contains a set of TDBM DAOs adding a basic user / role / right support for Mouf security.

This package will create tables for users, roles and rights.

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

[](#installation)

Run:

```
composer require mouf/security.daos.tdbm

```

Then, go to the Mouf user interface.

In Mouf:

- run the install tasks.
- apply the database patches
- regenerate TDBM DAOs

At this point, you should have a database with 4 additional tables: `users`, `users_roles`, `roles`, `roles_rights`.

Check the newly generated `UserBean` class.

Change this class so that:

- it extends `UserInterface`
- it uses the `UserTrait`

```
use Mouf\Security\DAO\UserTrait;
use Mouf\Security\UserService\UserInterface;

/**
 * The UserBean class maps the 'users' table in database.
 */
class UserBean extends UserBaseBean implements UserInterface
{
    use UserTrait;
}
```

Adding new rights
-----------------

[](#adding-new-rights)

Available rights are listed in the `Mouf\Security\Rights\RightsRegistry`. The `RightsRegistry` contains a list of rights implementing the `RightInterface`.

In order to add a new right, connect to Mouf, edit the `Mouf\Security\Rights\RightsRegistry` instance and drag'n'drop new rights in the `rights` property.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~512 days

Total

5

Last Release

1301d ago

PHP version history (2 changes)1.0.x-devPHP &gt;=7.0

v1.2.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (21 commits)")[![homersimpsons](https://avatars.githubusercontent.com/u/16977446?v=4)](https://github.com/homersimpsons "homersimpsons (2 commits)")[![Ngob](https://avatars.githubusercontent.com/u/2749238?v=4)](https://github.com/Ngob "Ngob (1 commits)")

---

Tags

securitydaoTDBM

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mouf-securitydaostdbm/health.svg)

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

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k455.2M1.5k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k170.7M239](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.0M138](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41182.2M138](/packages/robrichards-xmlseclibs)[voku/anti-xss

anti xss-library

70917.6M90](/packages/voku-anti-xss)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

86110.6M23](/packages/spatie-laravel-csp)

PHPackages © 2026

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