ride/cli-security
Composer 安装命令:
composer require ride/cli-security
包简介
Security commands for the CLI of a Ride application
README 文档
README
This module adds various security commands to the Ride CLI.
Commands
path
This command shows an overview of the secured paths.
Syntax: path [<query>]
<query>: Query to search the paths
Alias: sp
path secure
This command adds a path to the secured paths.
Syntax: path secure <path>
<path>: Path regular expression
Alias: sps
path unsecure
This command removes a path from the secured paths.
Syntax: path unsecure <path>
<path>: Path regular expression
Alias: spu
role
This command shows an overview of the roles. You can add a search query to filter the roles.
Syntax: role [<query>]
<query>: Query to search the roles
Alias: sr
role add
This command adds a new role to the security model.
Syntax: role add <name> [<weight>]
<name>: Name to identify the role<weight>: Weight of the role
Alias: sra
role allow
This command adds a path to the allowed paths of a role.
Syntax: role allow <role> <path>
<role>: Name or id of the role<path>: Path regular expression
Alias: sral
role delete
This command deletes a role from the security model.
Syntax: role delete <role>
<role>: Name or id to identify the role
Alias: srd
role deny
This command removes a granted permission from a role.
Syntax: role deny <role> <permission>
<role>: Name or id of the role<permission>: Code of the permission
Alias: srdn
role detail
This command shows the details of a role.
Syntax: role detail <role>
<role>: Name or id of the role
Alias: srde
role disallow
This command removes a path from the allowed paths of a role.
Syntax: role disallow <role> <path>
<role>: Name or id of the role<path>: Path regular expression
Alias: srdi
role edit
This command sets a property of a role.
Syntax: role edit <role> <key> [<value>]
<role>: Name or id of the role<key>: Key of the property (name or weight)<value>: Value for the property
Alias: sre
role grant
This command grants a permission to a role.
Syntax: role grant <role> <permission>
<role>: Name or id of the role<permission>: Code of the permission
Alias: srg
user
This command shows an overview of the users. You can set a search query to filter the users.
Syntax: user [<query>]
<query>: Query to search the users
Alias: su
user add
This command adds a new user to the security model.
Syntax: user add <username> <password> [<email>]
<username>: Username to identify the user<password>: Password to authenticate the user<email>: Email address of the user
Alias: sua
user assign
This command assigns a role to a user.
Syntax: user assign <user> <role>
<user>: Username or id to identify the user<role>: Name or id to identify the role
Alias: suas
user delete
This command deletes a user from the security model.
Syntax: user delete <user>
<user>: Username or id to identify the user
Alias: sud
user detail
This command shows the details of a user.
Syntax: user detail <user>
<user>: Username or id to identify the user
Alias: sude
user edit
This command sets a property of a user.
Syntax: user edit <user> <key> [<value>]
<user>: Username or id to identify the user<key>: Key of the property (name, password, email, confirm, image, active or super)<value>: Value for the property
Alias: sue
user preference
This command sets a preference of a user
Syntax: user preference <user> <key> [<value>]
<user>: Username or id to identify the user<key>: Key of the preference<value>: Value for the preference, omit to clear the preference
Alias: sup
user unassign
This command removes a role from a user.
Syntax: user unassign <user> <role>
<user>: Username or id to identify the user<role>: Name or id to identify the role
Alias: suu
Related Modules
Installation
You can use Composer to install this application.
composer require ride/cli-security
ride/cli-security 适用场景与选型建议
ride/cli-security 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.62k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2014 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ride/cli-security 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ride/cli-security 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-21