Download the PHP package tourze/json-rpc-security-bundle without Composer
On this page you can find all versions of the php package tourze/json-rpc-security-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package json-rpc-security-bundle
JSON-RPC Security Bundle
这个Symfony Bundle提供了JSON-RPC服务的授权处理机制。
安装
功能特性
- 支持Symfony Security组件集成
- 为JSON-RPC方法提供权限检查能力
- 通过属性(Attribute)声明方法所需权限
使用方法
-
在你的Symfony项目中添加此Bundle:
-
在你的JSON-RPC方法类上使用
IsGranted
属性: - 也可以使用
MethodPermission
属性来声明更细粒度的权限:
单元测试
单元测试使用PHPUnit进行,可以通过以下命令运行:
当前测试覆盖情况:
MethodPermission
属性类:基本测试完成JsonRPCSecurityBundle
类:基本测试完成JsonRPCSecurityExtension
类:基本测试完成GrantService
服务:受限于PHP反射API,部分测试被跳过IsGrantSubscriber
事件订阅器:受限于事件类的设计,测试被跳过- 集成测试:需要
JsonRPCBundle
支持,当前未能完全实现
贡献代码
欢迎提交Pull Request或Issue。
All versions of json-rpc-security-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
symfony/config Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/http-kernel Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/security-bundle Version ^6.4
symfony/security-http Version ^6.4
tourze/json-rpc-core Version ^0.0.6
symfony/config Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/http-kernel Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/security-bundle Version ^6.4
symfony/security-http Version ^6.4
tourze/json-rpc-core Version ^0.0.6
The package tourze/json-rpc-security-bundle contains the following files
Loading the files please wait ....