PHPackages                             ride/lib-security-generic - 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. ride/lib-security-generic

ActiveLibrary[Security](/categories/security)

ride/lib-security-generic
=========================

Generic security model of the Ride framework

1.0.0(9y ago)01.6k1MITPHP

Since Nov 29Pushed 9y ago7 watchersCompare

[ Source](https://github.com/all-ride/ride-lib-security-generic)[ Packagist](https://packagist.org/packages/ride/lib-security-generic)[ RSS](/packages/ride-lib-security-generic/feed)WikiDiscussions master Synced 1mo ago

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

Ride: Generic Security Model
============================

[](#ride-generic-security-model)

Generic security model for the security library of the PHP Ride framework.

This security model is file based and usefull for a small user base or as a backup for other security models.

What's In This Library
----------------------

[](#whats-in-this-library)

### SecurityModelIO

[](#securitymodelio)

The *SecurityModelIO* interface is used by the *GenericSecurityModel* as a data source.

An implementation is provided for the XML format by the *XmlSecurityModelIO* class.

### GenericSecurityModel

[](#genericsecuritymodel)

The *GenericSecurityModel* class offers a generic implementation of the *SecurityModel* interface from the [ride/lib-security](https://github.com/all-ride/ride-lib-security) module. This class also implements the *GenericUser*, *GenericRole* and *GenericPermission* classes.

Code Sample
-----------

[](#code-sample)

Check this code sample to see how to initialize this library:

```
use ride\library\encryption\hash\Hash;
use ride\library\event\EventManager;
use ride\library\security\model\generic\io\XmlSecurityModelIO;
use ride\library\security\model\generic\GenericSecurityModel;
use ride\library\system\System;

function createSGenericSecurityModel(System $system, EventManager $eventManager, Hash $hashAlgorithm) {
    $file = $system->getFileSystem()->getFile('/path/to/security.xml');
    $securityModelIO = new XmlSecurityModelIO($file);

    $securityModel = new GenericSecurityModel($securityModelIO, $eventManager, $hashAlgorithm);

    return $securityModel;
}
```

### Implementations

[](#implementations)

You can check the related implementations of this library:

- [ride/cli-security](https://github.com/all-ride/ride-cli-security)
- [ride/lib-security](https://github.com/all-ride/ride-lib-security)
- [ride/lib-security-oauth](https://github.com/all-ride/ride-lib-security-oauth)
- [ride/web-security-generic](https://github.com/all-ride/ride-web-security-generic)

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

[](#installation)

You can use [Composer](http://getcomposer.org) to install this library.

```
composer require ride/lib-security-generic

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~174 days

Recently: every ~224 days

Total

7

Last Release

3506d ago

Major Versions

0.5.0 → 1.0.02016-10-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d98d3f0d5db5eb241c6ee74bcee87d1e7dc1aaf7942b933d68e612ee2352eea?d=identicon)[ride-user](/maintainers/ride-user)

---

Top Contributors

[![kayalion](https://avatars.githubusercontent.com/u/2340819?v=4)](https://github.com/kayalion "kayalion (6 commits)")[![kristofser](https://avatars.githubusercontent.com/u/5928907?v=4)](https://github.com/kristofser "kristofser (1 commits)")

### Embed Badge

![Health badge](/badges/ride-lib-security-generic/health.svg)

```
[![Health](https://phpackages.com/badges/ride-lib-security-generic/health.svg)](https://phpackages.com/packages/ride-lib-security-generic)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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