PHPackages                             ride/cli-security - 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/cli-security

ActiveLibrary[Security](/categories/security)

ride/cli-security
=================

Security commands for the CLI of a Ride application

1.0.0(9y ago)04.5k1MITPHP

Since Nov 29Pushed 9y ago7 watchersCompare

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

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

Ride: Security CLI
==================

[](#ride-security-cli)

This module adds various security commands to the Ride CLI.

Commands
--------

[](#commands)

### path

[](#path)

This command shows an overview of the secured paths.

**Syntax**: `path []`

- ``: Query to search the paths

**Alias**: `sp`

### path secure

[](#path-secure)

This command adds a path to the secured paths.

**Syntax**: `path secure `

- ``: Path regular expression

**Alias**: `sps`

### path unsecure

[](#path-unsecure)

This command removes a path from the secured paths.

**Syntax**: `path unsecure `

- ``: Path regular expression

**Alias**: `spu`

### role

[](#role)

This command shows an overview of the roles. You can add a search query to filter the roles.

**Syntax**: `role []`

- ``: Query to search the roles

**Alias**: `sr`

### role add

[](#role-add)

This command adds a new role to the security model.

**Syntax**: `role add  []`

- ``: Name to identify the role
- ``: Weight of the role

**Alias**: `sra`

### role allow

[](#role-allow)

This command adds a path to the allowed paths of a role.

**Syntax**: `role allow  `

- ``: Name or id of the role
- ``: Path regular expression

**Alias**: `sral`

### role delete

[](#role-delete)

This command deletes a role from the security model.

**Syntax**: `role delete `

- ``: Name or id to identify the role

**Alias**: `srd`

### role deny

[](#role-deny)

This command removes a granted permission from a role.

**Syntax**: `role deny  `

- ``: Name or id of the role
- ``: Code of the permission

**Alias**: `srdn`

### role detail

[](#role-detail)

This command shows the details of a role.

**Syntax**: `role detail `

- ``: Name or id of the role

**Alias**: `srde`

### role disallow

[](#role-disallow)

This command removes a path from the allowed paths of a role.

**Syntax**: `role disallow  `

- ``: Name or id of the role
- ``: Path regular expression

**Alias**: `srdi`

### role edit

[](#role-edit)

This command sets a property of a role.

**Syntax**: `role edit   []`

- ``: Name or id of the role
- ``: Key of the property (name or weight)
- ``: Value for the property

**Alias**: `sre`

### role grant

[](#role-grant)

This command grants a permission to a role.

**Syntax**: `role grant  `

- ``: Name or id of the role
- ``: Code of the permission

**Alias**: `srg`

### user

[](#user)

This command shows an overview of the users. You can set a search query to filter the users.

**Syntax**: `user []`

- ``: Query to search the users

**Alias**: `su`

### user add

[](#user-add)

This command adds a new user to the security model.

**Syntax**: `user add   []`

- ``: Username to identify the user
- ``: Password to authenticate the user
- ``: Email address of the user

**Alias**: `sua`

### user assign

[](#user-assign)

This command assigns a role to a user.

**Syntax**: `user assign  `

- ``: Username or id to identify the user
- ``: Name or id to identify the role

**Alias**: `suas`

### user delete

[](#user-delete)

This command deletes a user from the security model.

**Syntax**: `user delete `

- ``: Username or id to identify the user

**Alias**: `sud`

### user detail

[](#user-detail)

This command shows the details of a user.

**Syntax**: `user detail `

- ``: Username or id to identify the user

**Alias**: `sude`

### user edit

[](#user-edit)

This command sets a property of a user.

**Syntax**: `user edit   []`

- ``: Username or id to identify the user
- ``: Key of the property (name, password, email, confirm, image, active or super)
- ``: Value for the property

**Alias**: `sue`

### user preference

[](#user-preference)

This command sets a preference of a user

**Syntax**: `user preference   []`

- ``: Username or id to identify the user
- ``: Key of the preference
- ``: Value for the preference, omit to clear the preference

**Alias**: `sup`

### user unassign

[](#user-unassign)

This command removes a role from a user.

**Syntax**: `user unassign  `

- ``: Username or id to identify the user
- ``: Name or id to identify the role

**Alias**: `suu`

Related Modules
---------------

[](#related-modules)

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

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

[](#installation)

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

```
composer require ride/cli-security

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~175 days

Recently: every ~225 days

Total

7

Last Release

3503d ago

Major Versions

0.4.0 → 1.0.02016-10-14

### 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 (2 commits)")

### Embed Badge

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

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

###  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)
